Not sure, but I think that it's perhaps a problem with the configuration of the date format on the SQL server.
Jul 6, 2022
1
Level 1
Date format on personal access token
I have a problem when I want to authenticate myself with Laravel Sanctum, when I generate a login the record of the creation and update dates in the personal_access_tokens table saves them with #Y:d:m format, apparently this means that when you want to send the token, the system it takes it as expired, returning the message "Unauthenticated", this only happens with SQL Server, in MySql the dates are saved correctly with the Y:m:d format, how can I solve it?
Steps To Reproduce: $user->createToken('auth_token')->plainTextToken;
Please or to participate in this conversation.