feat(backend): migrate auth and notifications off email
Some checks failed
Backend CI/CD / test (push) Has been cancelled
Backend CI/CD / deploy (push) Has been cancelled

This commit is contained in:
2026-05-21 10:28:04 +03:30
parent b4903f7cb1
commit b7b21a6cc6
35 changed files with 2784 additions and 1390 deletions

View File

@@ -19,7 +19,6 @@ class JWTAuth(HttpBearer):
if user_id:
user = User.objects.get(
id=user_id,
is_email_verified=True,
is_active=True,
)
return user
@@ -32,6 +31,7 @@ def create_jwt_token(user):
payload = {
"user_id": user.id,
"email": user.email,
"mobile": user.mobile,
"exp": datetime.now(UTC) + timedelta(seconds=settings.JWT_ACCESS_TOKEN_LIFETIME),
"iat": datetime.now(UTC),
}
@@ -49,4 +49,3 @@ def create_refresh_token(user):
jwt_auth = JWTAuth()