Detect expired dashboard logins and redirect to the splash page
This commit is contained in:
parent
f3a90faaa7
commit
8f5a9e607a
4 changed files with 12 additions and 1 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue