Skip to content

Revoke Laravel Passport tokens with an Artisan command

License

Notifications You must be signed in to change notification settings

andvla/laravel-passport-revoke

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Passport Revoke

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

About

Revoke Laravel Passport tokens with an Artisan command

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%