Skip to content

fix(jwt): preserve verify() defaults with audience validation#23

Merged
swalker326 merged 1 commit intomasterfrom
supersede/pr-20-jwt-audience-validation
Mar 21, 2026
Merged

fix(jwt): preserve verify() defaults with audience validation#23
swalker326 merged 1 commit intomasterfrom
supersede/pr-20-jwt-audience-validation

Conversation

@swalker326
Copy link
Copy Markdown

Summary

  • validate JWT audience during client.verify() and preserve backward compatibility by defaulting expected audience to clientID when options.audience is not provided
  • add focused regression coverage for audience validation and refresh-path behavior, and update existing tests to assert explicit/implicit audience expectations
  • improve /userinfo invalid token handling with consistent 401 invalid_token responses and add a regression test

Notes

@swalker326 swalker326 merged commit 12f4d72 into master Mar 21, 2026
2 checks passed
@swalker326 swalker326 deleted the supersede/pr-20-jwt-audience-validation branch March 21, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant