Skip to content

Commit 016fc10

Browse files
committed
docs: about refreshing tokens
1 parent 5f44a86 commit 016fc10

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,13 @@ ES384 | ECDSA using P-384 curve and SHA-384 hash algorithm
283283
ES512 | ECDSA using P-521 curve and SHA-512 hash algorithm
284284
none | No digital signature or MAC value included
285285

286+
## Refreshing JWTs
287+
288+
First of all, we recommend to think carefully if auto-refreshing a JWT will not introduce any vulnerability in your system.
289+
290+
We are not comfortable including this as part of the library, however, you can take a look to [this example](https://gist.github.com/ziluvatar/a3feb505c4c0ec37059054537b38fc48) to show how this could be accomplish.
291+
Apart from that example there are [an issue](https://github.com/auth0/node-jsonwebtoken/issues/122) and [a pull request](https://github.com/auth0/node-jsonwebtoken/pull/172) to get more knowledge about this topic.
292+
286293
# TODO
287294

288295
* X.509 certificate chain is not checked

0 commit comments

Comments
 (0)