It doesn't mean the same.
Nov 22, 2025
5
Level 2
Why sanctum doesn't dispatch logout event?
If revoke token in sanctum mean same as doing logout in web then why it doesn't dispatch logout event by default?
Level 50
The token is revoked when you log out from a mobile app, but revoking a token isn't the same as a logout event. It doesn't imply that anyone triggered a logout, or that the token was even used by anyone.
Tokens can be used for many purposes, including inter-application communication. Let's say you have a SaaS that allows users to create auth tokens from an admin panel, which they then use to integrate with your API. If they revoke a token, does that mean the token owner logged out?
If you think a logout event is appropriate, you have to trigger it yourself.
2 likes
Please or to participate in this conversation.