websanova / vue-auth

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

Do not clear redirect state if no actual redirect #689

Closed zorn-v closed 2 years ago

zorn-v commented 2 years ago

If you open/refresh protected page with expired token (server return 401 on refresh user) there will be two redirects to auth page - one from http interceptor _processLogout (with default invalidToken method) and another from _processTransitionEach 401 handler. Because of this redirect state will be cleared on second redirect and you can not return to protected page after login.

websanova commented 2 years ago

Alright, this is up on 4.1.13, thx!