There could be multiple reasons why the expires_at field in Laravel Sanctum is not getting updated. Some possible reasons and solutions are:
Cache issue: Sanctum uses cache to maintain the token state. So, if the cache is not getting cleared or refreshed, it may be causing the expires_at field to not update. Solution: Clear the cache or set a shorter cache duration.
Configuration issue: The configuration settings for Sanctum may not be set correctly. For example, the expiry time may not match the desired duration. Solution: Verify and update the settings in the configuration file.
Code issue: There could be a coding error causing the expiresat field to not update. For example, the code may be manually setting the expiry time without updating the field in the token table. Solution: Review the code and ensure that the expireat field is being updated properly.
Asked: 2022-05-04 11:00:00 +0000
Seen: 9 times
Last updated: May 23 '21