Skip to content

Commit

Permalink
docs: formatting
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
panva committed Jun 9, 2019
1 parent ed81fc6 commit c22cce2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2506,6 +2506,7 @@ Configures if and how the OP rotates refresh tokens after they are used. Support
- `false` refresh tokens are not rotated and their initial expiration date is final
- `true` refresh tokens are rotated when used, current token is marked as consumed and new one is issued with new TTL, when a consumed refresh token is encountered an error is returned instead and the whole token chain (grant) is revoked
- `function` returning true/false, true when rotation should occur, false when it shouldn't
<br/><br/>
The default configuration value puts forth a sensible refresh token rotation policy
- only allows refresh tokens to be rotated (have their TTL prolonged by issuing a new one) for one year
- otherwise always rotate public client tokens
Expand Down
2 changes: 2 additions & 0 deletions lib/helpers/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -1807,6 +1807,8 @@ const DEFAULTS = {
* encountered an error is returned instead and the whole token chain (grant) is revoked
* - `function` returning true/false, true when rotation should occur, false when it shouldn't
*
* <br/><br/>
*
* The default configuration value puts forth a sensible refresh token rotation policy
* - only allows refresh tokens to be rotated (have their TTL prolonged by issuing a new one) for one year
* - otherwise always rotate public client tokens
Expand Down

0 comments on commit c22cce2

Please sign in to comment.