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

feat: remove session, emit SIGNED_OUT when JWT session_id is invalid #905

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hf
Copy link
Contributor

@hf hf commented May 12, 2024

When the access token (JWT) contains a session_id property which does not correspond to a row in the sessions table, it means that the user has been signed out or the session has been destroyed in some way. Auth will send back a session_not_found error code which can be detected by the client library and removing of the stored session with emitting the SIGNED_OUT event should take place.

@hf hf force-pushed the hf/sign-out-session-missing branch from 50493b0 to 21e52ec Compare May 12, 2024 16:24
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

Successfully merging this pull request may close these issues.

None yet

2 participants