Revoke Laravel Passport tokens with a simple Artisan command

v1.3.1 2022-02-03 14:21 UTC

This package is auto-updated.

Last update: 2022-06-09 19:31:00 UTC


Latest Stable Version Build Status codecov License

This package provides a single Artisan command for revoking a set of active Laravel Passport tokens, to ease mass revocations. This can be useful if you add or remove claims from the JWT and need every user to have a newly issued token.


Install the package using Composer.

composer require jobilla/passport-revoke


Not passing any arguments to the command will revoke all active tokens:

php artisan passport:revoke

You may pass a token ID as the argument to revoke a single token:

php artisan passport:revoke 3

Or you may pass a --user option to revoke all active tokens for a given user.

php artisan passport:revoke --user=27