Support the ongoing development of Laravel.io →
posted 5 years ago

I am having trouble with setting Password Grant token expiration.
In my AuthProvider I have Passport::tokensExpireIn(Carbon::now()->addMinutes(10)); Passport::refreshTokensExpireIn(Carbon::now()->addMinutes(30));

The refresh token is getting the appropriate 30 minute expiration, however the access token is getting a 1 day expiration set in the database. Does anybody now why I cannot seem to control the access token expiration?

We are building a Laravel/Angular app and I am trying to keep the user from being logged in for more than 30 minutes of inactivity. Maybe I am going about this wrong?

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.