(name: string)
| 3 | type PolarServer = "sandbox" | "production"; |
| 4 | |
| 5 | function getRequiredEnv(name: string) { |
| 6 | const value = process.env[name]; |
| 7 | if (!value) { |
| 8 | throw new Error(`${name} environment variable is required`); |
| 9 | } |
| 10 | return value; |
| 11 | } |
| 12 | |
| 13 | export function getPolarAccessToken() { |
| 14 | return getRequiredEnv("POLAR_ACCESS_TOKEN"); |
no outgoing calls
no test coverage detected