MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getOauthConfigType

Function getOauthConfigType

src/constants/oauth.ts:6–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4type OauthConfigType = 'prod' | 'staging' | 'local'
5
6function 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
18export function fileSuffixForOauthConfig(): string {
19 if (process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL) {

Callers 2

fileSuffixForOauthConfigFunction · 0.85
getOauthConfigFunction · 0.85

Calls 1

isEnvTruthyFunction · 0.85

Tested by

no test coverage detected