dusterio/lumen-passport

Issue with tokensExpireIn when specifying a client id

awesomeousPrime opened this issue · 2 comments

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.

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

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