laravel / passport

Laravel Passport provides OAuth2 server support to Laravel.
https://laravel.com/docs/passport
MIT License
3.25k stars 780 forks source link

Token Revocation Notifications #1754

Closed bitcooker closed 2 weeks ago

bitcooker commented 2 weeks ago

Currently, when an access token or refresh token is revoked in Passport, clients are unaware of this change until they attempt to use the revoked token and receive an error. Can you add a feature like sending notifications to clients when an access token or refresh token is revoked? This can be implemented using Laravel's event system to dispatch events upon token revocation, and allowing clients to register listeners for these events.

crynobone commented 2 weeks ago

There's no plan for it at the moment I'm afraid