Laravel Sanctum, default token expiry defined in config/sanctum.php not working. #52519
Unanswered
beelalamin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm trying to set the default expiration for access tokens in config/sanctum.php. But somehow the expire_at column is null.
'expiration' => 86400,
But when I assign individually it works.
return $user->createToken( 'authToken', ['*'], now()->addWeek() )->plainTextToken;
Here is what I've tried:
Laravel: 11.16.0
Santum: 4.0.2
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions