mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
feat(core-app): CB-1122 make session expired if poll is late
This commit is contained in:
+6
-2
@@ -74,8 +74,12 @@ export class SessionExpireWarningDialogService extends Bootstrap {
|
||||
|
||||
const cookies = getCookies();
|
||||
|
||||
if (!this.sessionExpireService.sessionExpired && cookies[SESSION_COOKIE_NAME]) {
|
||||
await this.sessionResource.refreshSilent();
|
||||
if (!this.sessionExpireService.sessionExpired) {
|
||||
if (cookies[SESSION_COOKIE_NAME]) {
|
||||
await this.sessionResource.refreshSilent();
|
||||
} else {
|
||||
this.sessionExpireService.handleSessionExpired();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user