MCPcopy Create free account
hub / github.com/Noumena-Network/code / getOauthClientId

Function getOauthClientId

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

Source from the content-addressed store, hash-verified

139}
140
141export function getOauthClientId(): string {
142 const clientIdOverride =
143 process.env.NOUMENA_OAUTH_CLIENT_ID ||
144 process.env.CLAUDE_CODE_OAUTH_CLIENT_ID
145 if (clientIdOverride) {
146 return clientIdOverride
147 }
148 if (getNoumenaIssuerBaseUrl()) {
149 return 'noumena-code'
150 }
151 return getOauthConfig().CLIENT_ID
152}
153
154export function fileSuffixForOauthConfig(): string {
155 if (process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL) {

Callers 4

buildAuthUrlFunction · 0.85
exchangeCodeForTokensFunction · 0.85
refreshOAuthTokenFunction · 0.85
oauth.test.tsFile · 0.85

Calls 2

getNoumenaIssuerBaseUrlFunction · 0.85
getOauthConfigFunction · 0.85

Tested by

no test coverage detected