Skip to content

Commit dd28679

Browse files
committed
увеличен срок жизни токена
1 parent 57a0d82 commit dd28679

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

backend/core/settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
}
144144
LOGIN_URL = "/accounts/login"
145145
LOGIN_REDIRECT_URL = "/"
146+
SOCIALACCOUNT_LOGIN_ON_GET = True
146147

147148

148149
# EMAIL CONFIG
@@ -193,7 +194,7 @@
193194
AUTH_USER_MODEL = "users.User"
194195

195196
SIMPLE_JWT = {
196-
"ACCESS_TOKEN_LIFETIME": timedelta(minutes=10000),
197+
"ACCESS_TOKEN_LIFETIME": timedelta(minutes=100000),
197198
"AUTH_HEADER_TYPES": ("Bearer",),
198199
}
199200

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Generated by Django 4.2.7 on 2023-12-10 08:38
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
dependencies = [
8+
("users", "0002_alter_userskill_skill"),
9+
]
10+
11+
operations = [
12+
migrations.AlterModelOptions(
13+
name="userprofile",
14+
options={
15+
"ordering": ("id",),
16+
"verbose_name": "Данные пользователя",
17+
"verbose_name_plural": "Данные пользователя",
18+
},
19+
),
20+
]

0 commit comments

Comments
 (0)