Add event when token is revoked #21964
Unanswered
MargotDumoulin
asked this question in
Feature Requests
Replies: 1 comment
|
There is no notification from the server to the clients. So if your "session" is revoked on the server as in your instance of single session per user, the clients won't know until they try and refresh the jwt. At that point the client MAY generate sign_out event or might error, I'm not sure as I've not tested it. Just wanted to point out that there is no way until the token is refreshed the clients can know anything has changed. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
It would be useful to have a more specific event type in order to know when a token is revoked, so devs could adapt their apps behavior based on this information (for instance, we could indicate when a user is logged out because of the single session per user parameter).
Based on the documentation ("Listen to auth events"), we could use it this way :
All reactions