Skip to content

Commit 04b186b

Browse files
committed
Fix unrelated linter issue
1 parent b392daf commit 04b186b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/amazonq/src/util/clearCache.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ async function clearCache() {
3232
return
3333
}
3434

35-
// SSO cache persists on disk, this should indirectly delete it
36-
const conn = AuthUtil.instance.conn
37-
if (conn) {
38-
await AuthUtil.instance.auth.deleteConnection(conn)
35+
// SSO cache persists on disk, this should log out
36+
if (AuthUtil.instance.isConnected()) {
37+
await AuthUtil.instance.logout()
3938
}
4039

4140
await globals.globalState.clear()

0 commit comments

Comments
 (0)