MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / changeState

Method changeState

packages/cloud/src/WebAuthService.ts:129–134  ·  view source on GitHub ↗
(newState: AuthState)

Source from the content-addressed store, hash-verified

127 }
128
129 private changeState(newState: AuthState): void {
130 const previousState = this.state
131 this.state = newState
132 this.log(`[auth] changeState: ${previousState} -> ${newState}`)
133 this.emit("auth-state-changed", { state: newState, previousState })
134 }
135
136 private async handleCredentialsChange(): Promise<void> {
137 try {

Callers 5

transitionToLoggedOutMethod · 0.95
handleCallbackMethod · 0.95
refreshSessionMethod · 0.95

Calls 2

logMethod · 0.65
emitMethod · 0.65

Tested by

no test coverage detected