Skip to content

Return a dict of claims instead of str? #313

Answered by simo5
Aezore asked this question in Q&A
Discussion options

You must be logged in to vote

The jwk.claims storage is a json_encoded string.
You can use jwcrypto.common.json_decode(token.claims) to obtain a proper dict if that is the form you prefer to use.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Aezore
Comment options

Answer selected by Aezore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants