Skip to content

Commit b178a03

Browse files
chivorotkivsergeibbb
authored andcommitted
Avoids continuous refreshing when GKDev cannot renew expired session
(#4324)
1 parent 4e1b411 commit b178a03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plus/integrations/models/integration.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,10 @@ export abstract class IntegrationBase<
414414
source: source,
415415
},
416416
);
417+
418+
if (session?.expiresAt != null && session.expiresAt < new Date()) {
419+
session = null;
420+
}
417421
} catch (ex) {
418422
await this.container.storage.deleteWorkspace(this.connectedKey);
419423

0 commit comments

Comments
 (0)