We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f66f8c commit 5571885Copy full SHA for 5571885
todo_api/settings.py
@@ -10,6 +10,7 @@
10
https://docs.djangoproject.com/en/4.0/ref/settings/
11
"""
12
13
+from datetime import timedelta
14
from pathlib import Path
15
16
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -35,7 +36,8 @@
35
36
}
37
38
SIMPLE_JWT = {
- # It will work instead of the default serializer(TokenObtainPairSerializer).
39
+ # It will work instead of the default serializer(TokenObtainPairSerializer).\
40
+ "ACCESS_TOKEN_LIFETIME": timedelta(hours=1),
41
"TOKEN_OBTAIN_SERIALIZER": "rest_framework_simplejwt.serializers.MyTokenObtainPairSerializer",
42
# ...
43
0 commit comments