jobilla / passport-revoke
Revoke Laravel Passport tokens with a simple Artisan command
Installs: 5 934
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 15
Forks: 3
Open Issues: 1
Requires
- illuminate/console: 5.7.*|5.8.*|^6.0|^7|^8
- illuminate/support: 5.7.*|5.8.*|^6.0|^7|^8
- laravel/passport: ^7.0|^8|^9
Requires (Dev)
- mockery/mockery: ^1.2
- orchestra/testbench: 3.7.*|3.8.*
- phpunit/phpunit: ^7.5
- ramsey/uuid: ^3.8
README
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.
Installation
Install the package using Composer.
composer require jobilla/passport-revoke
Usage
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