Skip to content

Commit d9667dd

Browse files
Set BLACKLIST_AFTER_ROTATION by default to False at docs (#455)
* 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>
1 parent 4d7c764 commit d9667dd

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

docs/settings.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Some of Simple JWT's behavior can be customized through settings variables in
1818
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=5),
1919
'REFRESH_TOKEN_LIFETIME': timedelta(days=1),
2020
'ROTATE_REFRESH_TOKENS': False,
21-
'BLACKLIST_AFTER_ROTATION': True,
21+
'BLACKLIST_AFTER_ROTATION': False,
2222
'UPDATE_LAST_LOGIN': False,
2323
2424
'ALGORITHM': 'HS256',

rest_framework_simplejwt/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=5),
1414
'REFRESH_TOKEN_LIFETIME': timedelta(days=1),
1515
'ROTATE_REFRESH_TOKENS': False,
16-
'BLACKLIST_AFTER_ROTATION': True,
16+
'BLACKLIST_AFTER_ROTATION': False,
1717
'UPDATE_LAST_LOGIN': False,
1818

1919
'ALGORITHM': 'HS256',

tests/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ def pytest_configure():
5050
PASSWORD_HASHERS=(
5151
'django.contrib.auth.hashers.MD5PasswordHasher',
5252
),
53+
SIMPLE_JWT={
54+
'BLACKLIST_AFTER_ROTATION': True,
55+
},
5356
)
5457

5558
try:

0 commit comments

Comments
 (0)