Skip to content

Instantly share code, notes, and snippets.

@ManotLuijiu
Created December 12, 2023 04:46
Show Gist options
  • Save ManotLuijiu/f5cf121c34f6371aab1a7c873fd699ac to your computer and use it in GitHub Desktop.
Save ManotLuijiu/f5cf121c34f6371aab1a7c873fd699ac to your computer and use it in GitHub Desktop.
users -> urls.py
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