fix: proper Axios error extraction, token refresh, auth state restoration, ProtectedRoute
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from django.urls import path
|
||||
from rest_framework_simplejwt.views import TokenRefreshView
|
||||
|
||||
from accounts import views
|
||||
|
||||
@@ -7,4 +8,5 @@ app_name = "accounts"
|
||||
urlpatterns = [
|
||||
path("register/", views.register_view, name="register"),
|
||||
path("login/", views.login_view, name="login"),
|
||||
path("token/refresh/", TokenRefreshView.as_view(), name="token_refresh"),
|
||||
]
|
||||
Reference in New Issue
Block a user