dusterio / lumen-passport

Making Laravel Passport work with Lumen
MIT License
654 stars 139 forks source link

token expire at now work #153

Closed Rasoul-Karimi closed 2 years ago

Rasoul-Karimi commented 3 years ago

hi my token expire an not work! i set LumenPassport::tokensExpireIn(Carbon::now()->addDays(30)); but expire tokin in 30 minet!

stevefreedev commented 3 years ago

Hi bro, did you put your client id on the second parameter?

// Second parameter is the client Id LumenPassport::tokensExpireIn(Carbon::now()->addYears(50), 2); If you don't specify client Id, it will simply fall back to Laravel Passport implementation.