Skip to content

Commit 460904b

Browse files
committed
fix(authentication): error log not showing properly
1 parent 50af089 commit 460904b

File tree

1 file changed

+2
-2
lines changed
  • modules/authentication/src/handlers/oauth2

1 file changed

+2
-2
lines changed

modules/authentication/src/handlers/oauth2/OAuth2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export abstract class OAuth2<T, S extends OAuth2Settings>
138138
const providerResponse: { data: { access_token: string } } = await axios(
139139
providerOptions,
140140
).catch(err => {
141-
ConduitGrpcSdk.Logger.error(err.response.data);
141+
ConduitGrpcSdk.Logger.error(JSON.stringify(err.response.data));
142142
throw new GrpcError(status.INTERNAL, err.message);
143143
});
144144
const access_token = providerResponse.data.access_token;
@@ -150,7 +150,7 @@ export abstract class OAuth2<T, S extends OAuth2Settings>
150150
clientId,
151151
scope: scope,
152152
}).catch(err => {
153-
ConduitGrpcSdk.Logger.error(err.response.data);
153+
ConduitGrpcSdk.Logger.error(JSON.stringify(err.response.data));
154154
throw new GrpcError(status.INTERNAL, err.message);
155155
});
156156

0 commit comments

Comments
 (0)