Skip to content

Commit 1968d41

Browse files
committed
fix logout bug
1 parent 849006b commit 1968d41

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

packages/core/src/auth/auth2.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ export class SsoLogin extends BaseLogin {
367367
}
368368

369369
async logout() {
370+
this.lspAuth.deleteBearerToken()
370371
if (this.ssoTokenId) {
371372
await this.lspAuth.invalidateSsoToken(this.ssoTokenId)
372373
}

packages/core/src/codewhisperer/util/authUtil.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,6 @@ export class AuthUtil implements IAuthProvider {
192192
}
193193

194194
logout() {
195-
if (!this.isSsoSession()) {
196-
// Only SSO requires logout
197-
return
198-
}
199-
this.lspAuth.deleteBearerToken()
200195
const response = this.session?.logout()
201196
this.session = undefined
202197
return response

0 commit comments

Comments
 (0)