i have a problem with the refresh token with laravel/passport
I set AuthServiceProvider
use Laravel\Passport\Client as OClient;
public function boot()
{
$this->registerPolicies()
Passport::routes();
Passport::tokensExpireIn(now()->addMinute(5));
Passport::refreshTokensExpireIn(now()->addMinute(30));
Gate::define('isAdmin', function (User $user){
return $user->role_id === 1;
});
}
And in my AuthController i created a login function like that:
public function login(Request $request):
…
Top comments (0)