Skip to content

fix: Do not mutate headers inplace#8

Merged
lepture merged 1 commit into
authlib:mainfrom
Viicos:6-encode-copy
Jul 18, 2023
Merged

fix: Do not mutate headers inplace#8
lepture merged 1 commit into
authlib:mainfrom
Viicos:6-encode-copy

Conversation

@Viicos
Copy link
Copy Markdown
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
@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