What if token expires at the moment the order is submitted?

what if a token is valid for 7 days and the token expires at the moment a user chooses to buy an item and submits an order?

Jul.07,2022

generally, the verification of the user login identity token is done before the request processing, so if the token verification has been passed, the token will not be checked during the request processing.


it is recommended that this should not happen
if the user still has a request within a reasonable period of time, the backend refreshes the token validity period to ensure the user experience
if this is the case, it is recommended to roll back the data and renew the token or refresh the token validity period


access_token and refresh_token generally use access_token when obtaining the user identity.
refresh_token is only used to obtain a new AccessToken when the accessToken expires.
returns a specified status code such as 401 when it expires, and then the frontend records the last request to obtain the new token and continues the last request.


it's best not to let him expire. If it really expires, log in.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3160e-2b0f1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3160e-2b0f1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?