murtaza1904's avatar

murtaza1904 liked a comment+100 XP

5mos ago

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.

murtaza1904's avatar

murtaza1904 wrote a reply+100 XP

5mos ago

Why we couldn't consider revoking personal access token as logout? As for SPA or mobile app we do revoke tokens on logout api call

murtaza1904's avatar

murtaza1904 started a new conversation+100 XP

5mos ago

If revoke token in sanctum mean same as doing logout in web then why it doesn't dispatch logout event by default?