MCPcopy Create free account
hub / github.com/anus-dev/ANUS / authenticate

Method authenticate

packages/cli/src/zed-integration/zedIntegration.ts:103–109  ·  view source on GitHub ↗
({ methodId }: acp.AuthenticateRequest)

Source from the content-addressed store, hash-verified

101 }
102
103 async authenticate({ methodId }: acp.AuthenticateRequest): Promise<void> {
104 const method = z.nativeEnum(AuthType).parse(methodId);
105
106 await clearCachedCredentialFile();
107 await this.config.refreshAuth(method);
108 this.settings.setValue(SettingScope.User, 'selectedAuthType', method);
109 }
110
111 async newSession({
112 cwd,

Callers

nothing calls this directly

Calls 3

refreshAuthMethod · 0.80
setValueMethod · 0.45

Tested by

no test coverage detected