fix: deprecate passwords, use phone auth source of truth
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user