Skip to content

Commit 413ef60

Browse files
backport f8b1720 candidate to refresh on an earlier cadance (microsoft#137083)
1 parent 3a6960b commit 413ef60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/microsoft-authentication/src/AADHelper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,8 @@ export class AzureActiveDirectoryService {
525525
onDidChangeSessions.fire({ added: [], removed: [this.convertToSessionSync(token)], changed: [] });
526526
}
527527
}
528-
}, 1000 * (token.expiresIn - 30)));
528+
// For details on why this is set to 2/3, see https://github.com/microsoft/vscode/issues/133201#issuecomment-966668197
529+
}, 1000 * (token.expiresIn * 2 / 3)));
529530
}
530531

531532
this.storeTokenData();

0 commit comments

Comments
 (0)