Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

refactor(desktop): remove tautological auth checks (R13-L8)

Josuéa982354acbf1
diff --git a/desktop-app/src/__tests__/appService.bootstrap.test.ts b/desktop-app/src/__tests__/appService.bootstrap.test.ts
index b4cff0f1c..f825b7a4b 100644
--- a/desktop-app/src/__tests__/appService.bootstrap.test.ts
+++ b/desktop-app/src/__tests__/appService.bootstrap.test.ts
@@ -384,7 +384,6 @@ describe('AppService invitation configuration lookup', () => {
}
rpcTokenManager: { clear: ReturnType<typeof vi.fn> }
updateDesktopGfsUploadState: ReturnType<typeof vi.fn>
- logoutInProgress: boolean
passwordLogin: (email: string, password: string) => Promise<unknown>
logout: () => Promise<void>
getSessionState: () => Promise<unknown>
diff --git a/desktop-app/src/appService.ts b/desktop-app/src/appService.ts
index 1fa1ad6d7..3f5d56253 100644
--- a/desktop-app/src/appService.ts
+++ b/desktop-app/src/appService.ts
@@ -3857,7 +3857,7 @@ export class AppService {
this.requireSessionToken()
)
const switchedMe = this.me
- if (this.sessionToken !== switchedToken || !switchedMe || this.me !== switchedMe) {
+ if (this.sessionToken !== switchedToken || !switchedMe) {
throw new Error('stale_auth_epoch: authenticated team scope changed before activation')
}
// A deliberate user switch is the only team-context boundary that fences