(domain: string)
| 17 | } |
| 18 | |
| 19 | function 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 | |
| 26 | function base(enterpriseUrl?: string) { |
| 27 | return enterpriseUrl ? `https://copilot-api.${normalizeDomain(enterpriseUrl)}` : "https://api.githubcopilot.com" |