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

make type claim optional #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hampsterx
Copy link

#45

This PR is wrong (please decline it), but would like to raise the issue however :)

https://www.iana.org/assignments/jwt/jwt.xhtml#claims

"type" is not a reserved claim, in fact I found it hard to find (bit of a loaded keyword tho) any info about using "type" claim and could not find anything. Can it be made optional (setting perhaps?)

Copy link

@rhatch-kw rhatch-kw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes strikes me as a very good idea. I also have a need to validate JWT that does not originate from my app and therefore does not contain the type field in the payload.

@hampsterx
Copy link
Author

@IndominusByte any suggestion for better way to make "type" claim optional. Happy to update PR :)

@s3rius
Copy link

s3rius commented May 3, 2022

Hi, I've added more options to adjust type claims in #84.

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.

3 participants