fix: deprecate passwords, use phone auth source of truth

This commit is contained in:
2026-03-14 00:47:31 +03:00
parent c391a9b8e5
commit 0b76356169
4 changed files with 60 additions and 2 deletions
+3 -2
View File
@@ -1,5 +1,5 @@
from django.urls import path
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView
from rest_framework_simplejwt.views import TokenRefreshView
from apps.accounts.views import (
MeView,
@@ -7,6 +7,7 @@ from apps.accounts.views import (
OTPVerifyView,
PhoneAuthRequestView,
PhoneAuthVerifyView,
PasswordTokenObtainDeprecatedView,
RegisterView,
SocialLoginPlaceholderView,
)
@@ -14,7 +15,7 @@ from apps.accounts.views import (
urlpatterns = [
path("register/", RegisterView.as_view(), name="register"),
path("me/", MeView.as_view(), name="me"),
path("token/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
path("token/", PasswordTokenObtainDeprecatedView.as_view(), name="token_obtain_pair"),
path("token/refresh/", TokenRefreshView.as_view(), name="token_refresh"),
path("otp/request/", OTPRequestView.as_view(), name="otp_request"),
path("otp/verify/", OTPVerifyView.as_view(), name="otp_verify"),