-
Notifications
You must be signed in to change notification settings - Fork 485
Closed
Labels
apiIssue related to the REST APIIssue related to the REST API
Description
- 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_responseto set both access and refresh tokens. - We'll probably need to change the
SIMPLE_JWT["AUTH_TOKEN_CLASSES"]setting and switch fromSlidingTokentoAccessToken. - Make the default token lifetime significantly shorter, as they won't be invalidated anymore.
- Refresh tokens should be invalidated on logout and password change.
Refer to simplejwt documentation in order to perform the above.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
apiIssue related to the REST APIIssue related to the REST API