Created
December 12, 2023 04:46
-
-
Save ManotLuijiu/f5cf121c34f6371aab1a7c873fd699ac to your computer and use it in GitHub Desktop.
users -> urls.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.urls import path, re_path | |
from .views import ( | |
CustomProviderAuthView, | |
CustomTokenObtainPairView, | |
CustomTokenRefreshView, | |
CustomTokenVerifyView, | |
LogoutView, | |
) | |
urlpatterns = [ | |
re_path( | |
r"^o/(?P<provider>\S+)/$", | |
CustomProviderAuthView.as_view(), | |
name="provider-auth", | |
), | |
path("jwt/create/", CustomTokenObtainPairView.as_view()), | |
path("jwt/refresh/", CustomTokenRefreshView.as_view()), | |
path("jwt/verify/", CustomTokenVerifyView.as_view()), | |
path("logout/", LogoutView.as_view()), | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment