laravel passport revoke and prune event listener is not doing anything

Posted 2 years ago by anonymox

I've added this two event listeners to my : EventServiceProvider

     * The event listener mappings for the application.
     * @var array
    protected $listen = [
        'Laravel\Passport\Events\AccessTokenCreated' => [
        'Laravel\Passport\Events\RefreshTokenCreated' => [

And in my AuthServiceProvider I have :

     public function boot()

I want passport to revoke all other user access tokens and then prune them if they are revoked. but nothing is happening and every time I request an access token from postman I get a new access Token while there are several access tokens in the database.

Please sign in or create an account to participate in this conversation.