3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-22 01:05:02 +00:00

Detect expired dashboard logins and redirect to the splash page

This commit is contained in:
Dragory 2021-05-22 21:33:34 +03:00
parent 6c2020b35f
commit c0723840a3
4 changed files with 12 additions and 1 deletions

View file

@ -71,6 +71,11 @@ export const AuthStore: Module<AuthState, RootState> = {
await post("auth/logout");
await dispatch("clearApiKey");
},
async expiredLogin({ dispatch }) {
await dispatch("clearApiKey");
window.location.assign("/?error=expiredLogin");
},
},
mutations: {