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

Function callbackUrl

packages/opencode/src/plugin/snowflake-cortex.ts:67–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67function callbackUrl() {
68 if (!oauthServerPort) throw new Error("Snowflake OAuth callback server is not running")
69 return `http://${OAUTH_CALLBACK_HOST}:${oauthServerPort}${OAUTH_CALLBACK_PATH}`
70}
71
72export function oauthScope(role: string | undefined) {
73 if (!role) return "refresh_token"

Callers 2

buildAuthorizeUrlFunction · 0.85
exchangeCodeForTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected