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

Disconnect live views or channels on token invalidation (log-out everywhere and expiry) #912

Open
bradenstenning opened this issue Feb 14, 2025 · 0 comments

Comments

@bradenstenning
Copy link

I saw the recent announcement about the log_out_everywhere action—excited to see this functionality, thank you!

One key enhancement would be actively disconnecting all sockets associated with invalidated tokens. Currently, when a token is invalidated (e.g., via log_out_everywhere), live views or channels likely remain connected until something like a policy check or a fresh connection is attempted. Ideally, these sockets should be closed immediately when the token is invalidated.

This behavior should apply both when session tokens expire and when log_out_everywhere is triggered to ensure consistent session management.

Would love to hear your thoughts on this!

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