-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
JTI Support #104
Comments
You can add any claim you like in the payload. Is there something more you would want than that? |
I meant native support within the library. I can do it myself (and likely will for this project), I was just wondering if there were plans to have it in the library itself for ID generation. |
Would like to see this too. Would like to set this in options. |
-1. the JWT spec intentionally only describes JTI by characteristics and not a specific identifier algorithm or format. I don't think a JWT library should make that decision for you. It might make more sense to expose it as a hook to provide an ID generator function, but in JavaScript there's not much benefit to adding api surface vs just specifying the claim via an object literal. |
@jden Although I agree with what you're saying, I do think it would be nice to expose I'd like to do the following:
What does everyone think? |
@jedd-ahyoung I agree with your suggestion and I would really like to see this implemented. |
You can use |
I'd like to see the JTI (JWT ID) claim implemented so that I could, say, keep track of 'active' tokens out in the wild. And like the spec says it could be used to help prevent any replay attacks.
Are there any plans for this?
The text was updated successfully, but these errors were encountered: