From 5e53dace53cc22d4ab33d504c88f052cf17ee7cd Mon Sep 17 00:00:00 2001 From: Bastian Wagner Date: Sun, 25 Aug 2024 20:44:28 +0200 Subject: [PATCH] login --- idp/src/auth/auth.controller.ts | 4 +--- idp/src/users/users.service.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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; }