Log in again after the token expires in a pop-up box on the current page

question: the expiration time of 1.token is 20 minutes. We require a regular refresh of token in 15 minutes. When the
2.token expires, the pop-up box pops up on the current operation page, and the contents of the pop-up box are re-logged in to get the new token. After the login is successful, the pop-up box closes and is still on the current operation page.
has a boss ever done a pop-up box instead of jumping to the login page when token expires? Solve

Dec.27,2021
The principle of

is not the same, except that if you expire when testing token, instead of redirecting it, you will change it to a pop-up window.

Menu