javascript - How to restrict the same browser from logging in to two accounts
伊谢尔伦2017-05-27 17:41:53
0
4
840
After user A logs in, user B opens another login page. At this time, A will get B's token. The data is messed up (I stored the token in localstorage)! How to deal with it?
Just make a distinction when storing tokens in localstorage
When a logged-in user opens the login page, he should be redirected to the user's personal homepage
Reset storage when logging in