laravel / sanctum

Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.
https://laravel.com/docs/sanctum
MIT License
2.75k stars 294 forks source link

Token Expiration issue #469

Closed sandipiweb closed 1 year ago

sandipiweb commented 1 year ago

Sanctum Version

^3.0

Laravel Version

9.19

PHP Version

8.0.2

Database Driver & Version

mysql

Description

Mobile App Api

after create token, token has been expired after some time li 48 even i set 'expiration' => null, in config/sanctum.php.

how i can set token lifetime ?

Steps To Reproduce

step 1 Auth::attempt() check user credential, if match then step 2 is run

step 2

createToken('MyApp')->plainTextToken; run this method for creating token

stape 3

send to the user

driesvints commented 1 year ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.