Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How can I invalidate a session and the jwt token in use? #5015

Closed
dgrcode opened this issue Jul 24, 2022 · 1 comment
Closed

How can I invalidate a session and the jwt token in use? #5015

dgrcode opened this issue Jul 24, 2022 · 1 comment
Labels
question Ask how to do something or how something works

Comments

@dgrcode
Copy link
Contributor

dgrcode commented Jul 24, 2022

Question 💬

I have a use case where a user can update their name, email, etc. I think this should be a pretty common use case, but I haven't found a working solution.

There seemed to be a workaround, but I think this no longer works. The workaround was to trigger a browser event, as described in #596 (comment).

I have confirmed the data is updated in the User table in the database, but there's no change in the frontend. Even when reloading the page the stale data is loaded. I need to log out the user and then log them in again.

I think I might be missing something.

How to reproduce ☕️

N/A

Contributing 🙌🏽

Yes, I am willing to help answer this question in a PR

@dgrcode dgrcode added the question Ask how to do something or how something works label Jul 24, 2022
@dgrcode
Copy link
Contributor Author

dgrcode commented Jul 24, 2022

I'm thinking, would it be possible to update the session in the db to set an expiry date in the past?

@nextauthjs nextauthjs locked and limited conversation to collaborators Jul 24, 2022
@balazsorban44 balazsorban44 converted this issue into discussion #5016 Jul 24, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Ask how to do something or how something works
Projects
None yet
Development

No branches or pull requests

1 participant