docs.nestjs.com icon indicating copy to clipboard operation
docs.nestjs.com copied to clipboard

docs(techniques/authentication): add refresh-token implementation steps

Open dinuka-rp opened this issue 3 years ago • 1 comments

PR Checklist

Please check if your PR fulfills the following requirements:

  • [x] The commit message follows our guidelines: https://github.com/nestjs/docs.nestjs.com/blob/master/CONTRIBUTING.md

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Other... Please describe:

What is the current behavior?

https://github.com/nestjs/jwt/issues/122

Issue Number:

What is the new behavior?

Add documentation for refresh-token mechanism.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

This NodeJS refresh-token implementation was used as reference to come up with the following refresh-token mechanism for NestJS.

dinuka-rp avatar Sep 22 '20 19:09 dinuka-rp

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.

adamwdennis avatar Mar 22 '22 18:03 adamwdennis