diff --git a/packages/nocodb-nest/src/app.module.ts b/packages/nocodb-nest/src/app.module.ts index 9bad957619..4d2176a739 100644 --- a/packages/nocodb-nest/src/app.module.ts +++ b/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, diff --git a/packages/nocodb-nest/src/modules/users/users.service.ts b/packages/nocodb-nest/src/modules/users/users.service.ts index efbf26d276..cde89810b4 100644 --- a/packages/nocodb-nest/src/modules/users/users.service.ts +++ b/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) {