We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 849006b commit 1968d41Copy full SHA for 1968d41
packages/core/src/auth/auth2.ts
@@ -367,6 +367,7 @@ export class SsoLogin extends BaseLogin {
367
}
368
369
async logout() {
370
+ this.lspAuth.deleteBearerToken()
371
if (this.ssoTokenId) {
372
await this.lspAuth.invalidateSsoToken(this.ssoTokenId)
373
packages/core/src/codewhisperer/util/authUtil.ts
@@ -192,11 +192,6 @@ export class AuthUtil implements IAuthProvider {
192
193
194
logout() {
195
- if (!this.isSsoSession()) {
196
- // Only SSO requires logout
197
- return
198
- }
199
- this.lspAuth.deleteBearerToken()
200
const response = this.session?.logout()
201
this.session = undefined
202
return response
0 commit comments