Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dennizkee's avatar

Laravel Passport Token Expiry Date

I try to set the Expiry Date for Passport Token.

i already set the configuration in AuthServiceProvider.php

    Passport::tokensExpireIn(Carbon::now()->addDays(15));

    Passport::refreshTokensExpireIn(Carbon::now()->addDays(30));

But it still didnt work at all.

is there any solution for this?

I am using the newest Laravel framework and Passport Version.

0 likes
0 replies

Please or to participate in this conversation.