-
Notifications
You must be signed in to change notification settings - Fork 2k
docs(techniques/authentication): add refresh-token implementation steps #1468
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
Conversation
@Keithcat767
Keithcat767
Nov 24, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo, convenint
should be convenient
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adamwdennis
adamwdennis
Mar 22, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
adamwdennis
commented
Mar 22, 2022
Thanks for this.. It took me a full day to find this answer to my problem with access/refresh tokens... i started by adding a custom claim 'token_type', but this makes SO much more sense (signing refresh tokens with different secrets). Thank you.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
nestjs/jwt#122
Issue Number:
What is the new behavior?
Add documentation for refresh-token mechanism.
Does this PR introduce a breaking change?
Other information
This NodeJS refresh-token implementation was used as reference to come up with the following refresh-token mechanism for NestJS.