refactor: implement automatic token refresh and credential support for auth API client

This commit is contained in:
Your Name
2026-04-10 18:34:28 +05:30
parent 867839f896
commit a0eec02ee4
4 changed files with 27 additions and 7 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ class TokenGenerateView(TokenObtainPairView):
class RefreshTokenView(TokenRefreshView):
permission_classes = (permissions.IsAuthenticated,)
permission_classes = (permissions.AllowAny,)
def post(self, request, *args, **kwargs):
refresh_token = request.COOKIES.get(settings.SIMPLE_JWT["AUTH_COOKIE"])