Skip to content

Instantly share code, notes, and snippets.

@therealak12
Created March 9, 2021 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save therealak12/d29ea4f6473e8d1c88c0442bdcb51f79 to your computer and use it in GitHub Desktop.
Save therealak12/d29ea4f6473e8d1c88c0442bdcb51f79 to your computer and use it in GitHub Desktop.
from django.urls import path
from rest_framework_simplejwt.views import TokenRefreshView
from .views import EmailTokenObtainPairView, RegisterView
urlpatterns = [
path('register/', RegisterView.as_view(), name='token_obtain_pair'),
path('token/obtain/', EmailTokenObtainPairView.as_view(), name='token_obtain_pair'),
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment