Skip to content

Commit

Permalink
log obo.error details
Browse files Browse the repository at this point in the history
  • Loading branch information
kenglxn committed Sep 23, 2024
1 parent 72a0302 commit a10af85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/tokenx.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const tokenXMiddleware =

const obo = await requestOboToken(subject_token, audience);
if (!obo.ok) {
log.error('token exchange failed. could not obtain obo token.');
log.error(`token exchange failed. could not obtain obo token. ${obo.error}`);
res.status(401).send();
return;
}
Expand Down

0 comments on commit a10af85

Please sign in to comment.