Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to set no expiration date on the JWT cookie? #268

Open
GrayTable opened this issue May 11, 2021 · 0 comments
Open

Possibility to set no expiration date on the JWT cookie? #268

GrayTable opened this issue May 11, 2021 · 0 comments

Comments

@GrayTable
Copy link

My client wants users to be logged out of the application when the browser closes(not tab). Unfortunately, it seems that on the frontend there is basically no difference between tab close and browser close events.

One way to achieve it with native Django session cookies is to set SESSION_EXPIRE_AT_BROWSER_CLOSE setting to True. It simply does not set the expiration date and the cookie is dismissed when the browser closes. Is the same possible here?

@GrayTable GrayTable changed the title Possibility to set no expiration date on JWT cookie? Possibility to set no expiration date on the JWT cookie? May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant