How to Logout All Devices Without Password in Laravel Sanctum?

525 Views Asked by At

I am using Laravel Sanctum for both API and SPA authentication.

When an SPA user logs out, I need to logout him from all other devices too without asking for password. This is a requirement (and hence I cannot go other-way).

I am deleting all tokens of the target user during logout. And clearing user session does not delete/expire sessions from other devices. I need to delete all sessions of that particular user (from all devices).

I cannot find a way to obtain this.

0

There are 0 best solutions below