Skip to content

Commit 43f43b7

Browse files
liramon1yuxianrz
authored andcommitted
Fix SSO migration from production auth
1 parent a90ae99 commit 43f43b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export class AuthUtil implements IAuthProvider {
153153
await this.session.restore()
154154
if (!this.isConnected()) {
155155
// If both fail, reset the session
156-
this.session = undefined
156+
await this.session?.logout()
157157
}
158158
}
159159
}

0 commit comments

Comments
 (0)