File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/authentication/src/handlers/oauth2 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments