From bbb7a07d8062dfbbd5c00500c75f6f3f5222e500 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 11 Apr 2023 23:19:48 +0530 Subject: [PATCH] fix: signin api correction Signed-off-by: Pranav C --- packages/nocodb-nest/src/app.module.ts | 2 +- packages/nocodb-nest/src/modules/users/users.service.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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) {