File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -132,15 +132,17 @@ def _get_secret_key() -> str:
132
132
SESSION_SAVE_EVERY_REQUEST = True
133
133
134
134
# JWT token lifetime
135
- JWT_ACCESS_TOKEN_LIFETIME_SECONDS = settings .get (
136
- "JWT_ACCESS_TOKEN_LIFETIME_SECONDS" , 5
135
+ JWT_ACCESS_TOKEN_LIFETIME_MINUTES = settings .get (
136
+ "JWT_ACCESS_TOKEN_LIFETIME_MINUTES" ,
137
+ 5 ,
137
138
)
138
139
JWT_REFRESH_TOKEN_LIFETIME_DAYS = settings .get (
139
- "JWT_REFRESH_TOKEN_LIFETIME_DAYS" , 2
140
+ "JWT_REFRESH_TOKEN_LIFETIME_DAYS" ,
141
+ 2 ,
140
142
)
141
143
SIMPLE_JWT = {
142
144
"ACCESS_TOKEN_LIFETIME" : timedelta (
143
- minutes = JWT_ACCESS_TOKEN_LIFETIME_SECONDS
145
+ minutes = JWT_ACCESS_TOKEN_LIFETIME_MINUTES ,
144
146
),
145
147
"REFRESH_TOKEN_LIFETIME" : timedelta (days = JWT_REFRESH_TOKEN_LIFETIME_DAYS ),
146
148
}
You can’t perform that action at this time.
0 commit comments