Skip to content

Commit

Permalink
fix(authentication): error log not showing properly
Browse files Browse the repository at this point in the history
  • Loading branch information
kkopanidis committed Nov 1, 2023
1 parent 50af089 commit 460904b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/authentication/src/handlers/oauth2/OAuth2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export abstract class OAuth2<T, S extends OAuth2Settings>
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;
Expand All @@ -150,7 +150,7 @@ export abstract class OAuth2<T, S extends OAuth2Settings>
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);
});

Expand Down

0 comments on commit 460904b

Please sign in to comment.