Skip to content

Commit a9fcf6e

Browse files
committed
fix(amazonq): update the bearer token in the language server every 5 minutes
1 parent ebf1031 commit a9fcf6e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/amazonq/src/lsp/client.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ export async function startLanguageServer(extensionContext: vscode.ExtensionCont
100100
}
101101
})
102102

103+
// Temporary code for pen test. Will be removed when we switch to the real flare auth
104+
setInterval(async () => {
105+
await auth.init()
106+
}, 300000) // every 5 minutes
107+
103108
toDispose.push(
104109
AuthUtil.instance.auth.onDidChangeActiveConnection(async () => {
105110
await auth.init()

0 commit comments

Comments
 (0)