From 460904bb964ceb972c64cd0ccbe098036c721424 Mon Sep 17 00:00:00 2001 From: Konstantinos Kopanidis Date: Wed, 1 Nov 2023 17:36:28 +0200 Subject: [PATCH] fix(authentication): error log not showing properly --- modules/authentication/src/handlers/oauth2/OAuth2.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/authentication/src/handlers/oauth2/OAuth2.ts b/modules/authentication/src/handlers/oauth2/OAuth2.ts index fbd73e830..7e6cc0129 100644 --- a/modules/authentication/src/handlers/oauth2/OAuth2.ts +++ b/modules/authentication/src/handlers/oauth2/OAuth2.ts @@ -138,7 +138,7 @@ export abstract class OAuth2 const providerResponse: { data: { access_token: string } } = await axios( providerOptions, ).catch(err => { - ConduitGrpcSdk.Logger.error(err.response.data); + ConduitGrpcSdk.Logger.error(JSON.stringify(err.response.data)); throw new GrpcError(status.INTERNAL, err.message); }); const access_token = providerResponse.data.access_token; @@ -150,7 +150,7 @@ export abstract class OAuth2 clientId, scope: scope, }).catch(err => { - ConduitGrpcSdk.Logger.error(err.response.data); + ConduitGrpcSdk.Logger.error(JSON.stringify(err.response.data)); throw new GrpcError(status.INTERNAL, err.message); });