()
| 4 | type OauthConfigType = 'prod' | 'staging' | 'local' |
| 5 | |
| 6 | function getOauthConfigType(): OauthConfigType { |
| 7 | if (process.env.USER_TYPE === 'ant') { |
| 8 | if (isEnvTruthy(process.env.USE_LOCAL_OAUTH)) { |
| 9 | return 'local' |
| 10 | } |
| 11 | if (isEnvTruthy(process.env.USE_STAGING_OAUTH)) { |
| 12 | return 'staging' |
| 13 | } |
| 14 | } |
| 15 | return 'prod' |
| 16 | } |
| 17 | |
| 18 | export function fileSuffixForOauthConfig(): string { |
| 19 | if (process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL) { |
no test coverage detected