MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / AuthHook

Interface AuthHook

crates/opencode-plugin/host/plugin-host.ts:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60interface AuthHook {
61 provider: string;
62 methods: AuthMethod[];
63 authorize?: (method: AuthMethod, inputs?: Record<string, string>) => Promise<AuthorizeResult>;
64 loader?: () => Promise<{
65 apiKey?: string;
66 fetch?: typeof globalThis.fetch;
67 [key: string]: unknown;
68 }>;
69}
70
71// ---------------------------------------------------------------------------
72// Content-Length framing

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected