Skip to content

Commit

Permalink
Set BLACKLIST_AFTER_ROTATION by default to False at docs (#455)
Browse files Browse the repository at this point in the history
* Set BLACKLIST_AFTER_ROTATION to False in docs

* Set BLACKLIST_AFTER_ROTATION default to False

* Update test settings

Co-authored-by: Andrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com>
  • Loading branch information
mohmyo and Andrew-Chen-Wang committed Sep 19, 2021
1 parent 4d7c764 commit d9667dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Some of Simple JWT's behavior can be customized through settings variables in
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=5),
'REFRESH_TOKEN_LIFETIME': timedelta(days=1),
'ROTATE_REFRESH_TOKENS': False,
'BLACKLIST_AFTER_ROTATION': True,
'BLACKLIST_AFTER_ROTATION': False,
'UPDATE_LAST_LOGIN': False,
'ALGORITHM': 'HS256',
Expand Down
2 changes: 1 addition & 1 deletion rest_framework_simplejwt/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=5),
'REFRESH_TOKEN_LIFETIME': timedelta(days=1),
'ROTATE_REFRESH_TOKENS': False,
'BLACKLIST_AFTER_ROTATION': True,
'BLACKLIST_AFTER_ROTATION': False,
'UPDATE_LAST_LOGIN': False,

'ALGORITHM': 'HS256',
Expand Down
3 changes: 3 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def pytest_configure():
PASSWORD_HASHERS=(
'django.contrib.auth.hashers.MD5PasswordHasher',
),
SIMPLE_JWT={
'BLACKLIST_AFTER_ROTATION': True,
},
)

try:
Expand Down

0 comments on commit d9667dd

Please sign in to comment.