public function boot()
{
$this->registerPolicies();
Passport::routes();
Passport::tokensExpireIn(now()->addMinutes(1));
}
to make the token expire in 1 minute, but no such thing happened.
I read something about whether the API is personal or client, I did not understand that.
Can someone explain me better why it doesn't work with staff? How could I apply it to a client?
Token life time with passport in Laravel 6.x
I tried to use the method in AuthServiceProvider:
to make the token expire in 1 minute, but no such thing happened.
I read something about whether the API is personal or client, I did not understand that. Can someone explain me better why it doesn't work with staff? How could I apply it to a client?
Thank you very much!!