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); });