Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from rest_framework_simplejwt.views import (
- TokenObtainPairView,
- TokenRefreshView
- )
- urlpatterns = [
- path(
- "api/token/",
- TokenObtainPairView.as_view(),
- name="obtain_token"
- ),
- path(
- "api/token/refresh/",
- TokenRefreshView.as_view(),
- name='token_refresh'
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement