You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using this Package for Lumen Passport authentication, everything is working fine except one thing, which is the token expiry datetime, this package doesn't care about the token expiry time.
There is an issue regarding this here #12 but this issue was closed without any solution, a full of discussion here, please provide a solution to it
The text was updated successfully, but these errors were encountered:
After going through the Passport documentation I finally found the solution.
Step 1: Uncomment $app->register(App\Providers\AuthServiceProvider::class); from bootstrap/app.php file
Step 2: In the boot function of AuthServiceProvider.php add the below 2 lines
Passport::tokensExpireIn(Carbon::now()->addDays(7)); // expire in 7 days Passport::refreshTokensExpireIn(Carbon::now()->addDays(10)); // expire in 10 days
Using this Package for Lumen Passport authentication, everything is working fine except one thing, which is the token expiry datetime, this package doesn't care about the token expiry time.
There is an issue regarding this here #12 but this issue was closed without any solution, a full of discussion here, please provide a solution to it
The text was updated successfully, but these errors were encountered: