timtom
2 months ago
202
1
Laravel

Set expiration with Laravel Passport

Posted 2 months ago by timtom

Hello,

I use Laravel passport but when i create token for user, it never expired. Do you know how to set an expiration date ?

I create token like this :

$user->createToken("StrongAuth", [$user->scope])->accessToken;

Someone already have this problem ?

Thanks

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