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

Function getUrls

packages/opencode/src/plugin/github-copilot/copilot.ts:19–24  ·  view source on GitHub ↗
(domain: string)

Source from the content-addressed store, hash-verified

17}
18
19function getUrls(domain: string) {
20 return {
21 DEVICE_CODE_URL: `https://${domain}/login/device/code`,
22 ACCESS_TOKEN_URL: `https://${domain}/login/oauth/access_token`,
23 }
24}
25
26function base(enterpriseUrl?: string) {
27 return enterpriseUrl ? `https://copilot-api.${normalizeDomain(enterpriseUrl)}` : "https://api.githubcopilot.com"

Callers 1

authorizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected