IndominusByte / fastapi-jwt-auth

FastAPI extension that provides JWT Auth support (secure, easy to use, and lightweight)
http://indominusbyte.github.io/fastapi-jwt-auth/
MIT License
630 stars 143 forks source link

make type claim optional #54

Open hampsterx opened 3 years ago

hampsterx commented 3 years ago

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?)

hampsterx commented 2 years ago

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

s3rius commented 2 years ago

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