Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Do not mutate headers inplace #8

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Conversation

Viicos
Copy link
Member

@Viicos Viicos commented Jul 18, 2023

Fixes #6.

@lepture any restrictions regarding the typ header claim? This fix will allow custom values to be used, and default to JWT, without mutating the header in place

@lepture lepture merged commit 80666d3 into authlib:main Jul 18, 2023
1 of 5 checks passed
@Viicos Viicos deleted the 6-encode-copy branch July 19, 2023 12:59
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.

jwt.encode shouldn't hardcode header typ as 'JWT'
2 participants