Skip to content

Commit 7a221bb

Browse files
committed
chore: Properly log accesstoken response in case of error
1 parent bcb082f commit 7a221bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/client/lib/OpenID4VCIClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ export class OpenID4VCIClient {
288288
});
289289

290290
if (response.errorBody) {
291-
debug(`Access token error:\r\n${response.errorBody}`);
291+
debug(`Access token error:\r\n${JSON.stringify(response.errorBody)}`);
292292
throw Error(
293293
`Retrieving an access token from ${this._state.endpointMetadata?.token_endpoint} for issuer ${this.getIssuer()} failed with status: ${
294294
response.origResponse.status

0 commit comments

Comments
 (0)