there are two related token, one is access_token , the other is refresh_token , there are two questions, please explain:
1, refresh_token is to see that access_token is about to expire, then access_token will be regenerated, so refresh_token how do you know access_token is about to expire?
2. access_token is generated when the front end logs in, which is marked as token_1. When the token_1 is about to expire, the backend refresh_token refreshes access_token , and then the token_2, is generated. So, how does the backend tell the front end the refreshed token_2 so that the front end can carry the new token_2?
