Skip to content

Commit fa7f935

Browse files
alexmclartyauvipy
andauthored
Update settings.rst (#991)
Add that REFRESH_TOKEN_EXPIRE_SECONDS can be an `Int` or `datetime.timedelta` to settings.rst. Co-authored-by: Asif Saif Uddin <[email protected]>
1 parent 6625d3a commit fa7f935

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/settings.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ REFRESH_TOKEN_EXPIRE_SECONDS
147147
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
148148
The number of seconds before a refresh token gets removed from the database by
149149
the ``cleartokens`` management command. Check :ref:`cleartokens` management command for further info.
150+
Can be an ``Int`` or ``datetime.timedelta``.
151+
150152
NOTE: This value is completely ignored when validating refresh tokens.
151153
If you don't change the validator code and don't run cleartokens all refresh
152154
tokens will last until revoked or the end of time. You should change this.

0 commit comments

Comments
 (0)