Skip to content

Commit

Permalink
chore: Properly log accesstoken response in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Mar 3, 2024
1 parent bcb082f commit 7a221bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/lib/OpenID4VCIClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export class OpenID4VCIClient {
});

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

0 comments on commit 7a221bb

Please sign in to comment.