You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose rest_framework_simplejwt.views.TokenRefreshView. Subclass it so it sets an cookie in lieu with current auth views (see authorise_response for implementation).
Extend authorise_response to set both access and refresh tokens.
We'll probably need to change the SIMPLE_JWT["AUTH_TOKEN_CLASSES"] setting and switch from SlidingToken to AccessToken.
Make the default token lifetime significantly shorter, as they won't be invalidated anymore.
Refresh tokens should be invalidated on logout and password change.
rest_framework_simplejwt.views.TokenRefreshView
. Subclass it so it sets an cookie in lieu with current auth views (see authorise_response for implementation).authorise_response
to set both access and refresh tokens.SIMPLE_JWT["AUTH_TOKEN_CLASSES"]
setting and switch fromSlidingToken
toAccessToken
.Refer to simplejwt documentation in order to perform the above.
The text was updated successfully, but these errors were encountered: