Browse Source

fix: signin api correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 2 years ago
parent
commit
bbb7a07d80
  1. 2
      packages/nocodb-nest/src/app.module.ts
  2. 4
      packages/nocodb-nest/src/modules/users/users.service.ts

2
packages/nocodb-nest/src/app.module.ts

@ -66,7 +66,7 @@ export const JwtStrategyProvider: Provider = {
const options = {
// ignoreExpiration: false,
jwtFromRequest: ExtractJwt.fromHeader('xc-auth'),
expiresIn: '10h',
// expiresIn: '10h',
passReqToCallback: true,
secretOrKey: config.auth.jwt.secret,
...config.auth.jwt.options,

4
packages/nocodb-nest/src/modules/users/users.service.ts

@ -478,9 +478,7 @@ export class UsersService {
ip: (param.req as any).clientIp,
});
return {
token: this.login(user),
} as any;
return this.login(user);
}
async login(user: any) {

Loading…
Cancel
Save