diff --git a/src/authentication/authentication.guard.ts b/src/authentication/authentication.guard.ts index 7e938b0..26e6d6b 100644 --- a/src/authentication/authentication.guard.ts +++ b/src/authentication/authentication.guard.ts @@ -82,6 +82,8 @@ export class AuthenticationGuard const accessToken = request.get('Authorization'); let accessTokenPayload: RequestUser; + + this.logger.info(`accessToken: ${accessToken}`) // If the user isn't authenticated, an error will occurr anywhere here. // Fancy error avoidance isn't performed by purpose, such as avoiding to access null values. try { diff --git a/src/modules/auth/auth.controller.ts b/src/modules/auth/auth.controller.ts index 1097d51..eedec3c 100644 --- a/src/modules/auth/auth.controller.ts +++ b/src/modules/auth/auth.controller.ts @@ -101,11 +101,14 @@ export class AuthController { this.logger.info('/auth - RefreshAccessToken'); const { refreshToken, customerName: customer_name } = body; + this.logger.info(`refreshToken: ${refreshToken}`) + this.logger.info(`body: ${body}`); + const metadata = PackTheMetadata({ customer_name, language, }); - + this.logger.info(`metadata: ${metadata}`); return this.authClient.refreshAccessToken({ refreshToken }, metadata); } diff --git a/src/modules/users/users.controller.ts b/src/modules/users/users.controller.ts index 9e00f7c..f2198de 100644 --- a/src/modules/users/users.controller.ts +++ b/src/modules/users/users.controller.ts @@ -152,7 +152,9 @@ export class UsersController { }); this.logger.info('createUser', { user }); this.userService.setLanguage(language); - + this.logger.info(`user: ${user}`); + this.logger.info(`body: ${body}`); + this.logger.info(`metadata: ${metadata}`); return await this.userService.createUser(body, metadata); } @@ -171,7 +173,9 @@ export class UsersController { access_token: user.access_token, language, }); - + this.logger.info(`user: ${user}`); + this.logger.info(`body: ${body}`); + this.logger.info(`metadata: ${metadata}`); return await this.userService.batchCreateUser(body, metadata); }