MCPcopy Create free account
hub / github.com/anomalyco/opencode / buildAuthorizeUrl

Function buildAuthorizeUrl

packages/opencode/src/plugin/digitalocean.ts:51–60  ·  view source on GitHub ↗
(state: string)

Source from the content-addressed store, hash-verified

49}
50
51function buildAuthorizeUrl(state: string): string {
52 const params = new URLSearchParams({
53 response_type: "token",
54 client_id: DO_OAUTH_CLIENT_ID,
55 redirect_uri: redirectUri(),
56 scope: OAUTH_SCOPES,
57 state,
58 })
59 return `${DO_AUTHORIZE_URL}?${params.toString()}`
60}
61
62async function startOAuthServer(): Promise<void> {
63 if (oauthServer) return

Callers 1

authorizeFunction · 0.70

Calls 1

redirectUriFunction · 0.85

Tested by

no test coverage detected