diff --git a/idp/src/auth/auth.controller.ts b/idp/src/auth/auth.controller.ts index 65b3ad7..0fd90e3 100644 --- a/idp/src/auth/auth.controller.ts +++ b/idp/src/auth/auth.controller.ts @@ -40,9 +40,7 @@ export class AuthController { @Body('code') code: string, @Body('client_id') clientId: string, ) { - const token = await this.usersService.loginWithSessionKey(code, clientId); - this.logger.log(`User logged in with code on client ${clientId}`); - return token; + return this.usersService.loginWithSessionKey(code, clientId); } @Get() diff --git a/idp/src/users/users.service.ts b/idp/src/users/users.service.ts index e9da1dd..9b574b9 100644 --- a/idp/src/users/users.service.ts +++ b/idp/src/users/users.service.ts @@ -112,7 +112,7 @@ export class UsersService { } const token = this.createAuthToken(user, client); - + this.logger.log(`User logged in with code on client ${clientId}`); return token; }