dusterio / lumen-passport

Making Laravel Passport work with Lumen
MIT License
655 stars 141 forks source link

Issue with tokensExpireIn when specifying a client id #104

Closed awesomeousPrime closed 2 years ago

awesomeousPrime commented 5 years ago

Hello, when specifying a client ID in the tokensExpireIn method, I'm getting the default expiration value (one year) instead of what I'm specifying.

This is what I'm adding in the boot method of the AuthServiceProvider

LumenPassport::tokensExpireIn(Carbon::now()->addDays(1), 2);

This is what the request along with the response looks like: image

If I remove the second argument on tokensExpireIn, I get the following: image

Currently, we are using version 0.2.8.

timotiuserickxyz commented 4 years ago

I get this bug as well, is there a solution ?

dwikurniantom commented 3 years ago

This is still a thing even in 2021. Any help ?