Skip to content

apply jwt settings only when supplied - #2204

Merged
lestrrat merged 1 commit into
develop/v4from
fix-v4-jwt-settings-no-clobber
Jun 18, 2026
Merged

lestrrat merged 1 commit into
develop/v4from
fix-v4-jwt-settings-no-clobber

Conversation

@lestrrat

Copy link
Copy Markdown
Collaborator
  • jwt.Settings stored parsePedantic and flattenAudience unconditionally, so any later unrelated Settings call reset a previously-set value
  • use pointer sentinels so each call applies only the options explicitly provided, matching the existing truncation/precision idiom
  • Settings doc note: each call leaves unspecified settings unchanged

@lestrrat
lestrrat merged commit e2d5854 into develop/v4 Jun 18, 2026
7 checks passed
@lestrrat
lestrrat deleted the fix-v4-jwt-settings-no-clobber branch June 18, 2026 04:12
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