fix(auth): clear cached silentLoginPromise on logout to allow re-authentication
After logout, the cached silentLoginPromise caused silentLogin() to return a stale result instead of re-executing loginByComputerName(), leaving sessionManager.currentUser as null and making subsequent switchUser() calls fail. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -215,6 +215,7 @@ export class AuthApplicationService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.sessionManager.logout()
|
this.sessionManager.logout()
|
||||||
|
this.silentLoginPromise = null
|
||||||
await this.updateService.setUserContext(null)
|
await this.updateService.setUserContext(null)
|
||||||
},
|
},
|
||||||
{ operation: 'logout' }
|
{ operation: 'logout' }
|
||||||
|
|||||||
Reference in New Issue
Block a user