If you want to know more about JWT, check out the following resources: Each time the user loads the page, you can check if there is an existing non-expired . Responsible for controlling the response data returned after login or refresh..