MCPcopy Index your code
hub / github.com/anomalyco/opencode / hookWithAuth

Function hookWithAuth

packages/opencode/test/cli/plugin-auth-picker.test.ts:5–12  ·  view source on GitHub ↗
(provider: string)

Source from the content-addressed store, hash-verified

3import type { Hooks } from "@opencode-ai/plugin"
4
5function hookWithAuth(provider: string): Hooks {
6 return {
7 auth: {
8 provider,
9 methods: [],
10 },
11 }
12}
13
14function hookWithoutAuth(): Hooks {
15 return {}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected