Skip to content

Commit ee9b987

Browse files
author
Daan Hoogland
committed
logout on expired user
1 parent 6136ac9 commit ee9b987

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ui/src/store/modules/user.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,11 @@ const user = {
304304
commit('SET_DARK_MODE', darkMode)
305305
commit('SET_LATEST_VERSION', latestVersion)
306306
if (hasAuth) {
307+
if (!Cookies.get('userid')) {
308+
reject(new Error('Identity session expired'))
309+
return
310+
}
311+
307312
console.log('Login detected, using cached APIs')
308313
commit('SET_ZONES', cachedZones)
309314
commit('SET_SHOW_SECURITY_GROUPS', cachedShowSecurityGroups)

0 commit comments

Comments
 (0)