-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add refresh token view and serializer
- Loading branch information
1 parent
abf141b
commit 5691d06
Showing
4 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
from django.shortcuts import render | ||
from rest_framework_simplejwt.views import TokenRefreshView | ||
|
||
# Create your views here. | ||
from auth_protection.serializers import ProtectTokenRefreshSerializer | ||
|
||
|
||
class ProtectTokenRefreshView(TokenRefreshView): | ||
""" | ||
Takes a refresh type JSON web token and returns an access type JSON web | ||
token if the refresh token is valid. | ||
""" | ||
serializer_class = ProtectTokenRefreshSerializer |
This file contains 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