SHARE
TWEET

Untitled

a guest Sep 18th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from rest_framework_simplejwt.views import (
  2.     TokenObtainPairView,
  3.     TokenRefreshView
  4. )
  5.  
  6. urlpatterns = [
  7.     path(
  8.         "api/token/",
  9.         TokenObtainPairView.as_view(),
  10.         name="obtain_token"
  11.     ),
  12.     path(
  13.         "api/token/refresh/",
  14.         TokenRefreshView.as_view(),
  15.         name='token_refresh'
  16.     )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top