websanova / vue-auth

A simple light-weight authentication library for Vue.js
MIT License
2.36k stars 380 forks source link

Reset impersonating state on process logout #695

Open zorn-v opened 1 year ago

zorn-v commented 1 year ago

Currently, if you have expired impersonate token and you get 401 server response for refresh user, you'll stuck in semi-impersonating mode. E.g. if you enter any valid credentials without refreshing page, token will be saved in tokenImpersonateKey. So you are become impersonating yourself without default token. Return to normal state avail after unimpersonate (which work like logout now) and relogin.