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

Function getOauthAuthorizeUrl

src/constants/oauth.ts:71–79  ·  view source on GitHub ↗
(loginWithClaudeAi?: boolean)

Source from the content-addressed store, hash-verified

69}
70
71export function getOauthAuthorizeUrl(loginWithClaudeAi?: boolean): string {
72 const noumenaOauthWebBaseUrl = getNoumenaOauthWebBaseUrl()
73 if (noumenaOauthWebBaseUrl) {
74 return `${noumenaOauthWebBaseUrl}/oauth/authorize`
75 }
76 return loginWithClaudeAi
77 ? getOauthConfig().CLAUDE_AI_AUTHORIZE_URL
78 : getOauthConfig().CONSOLE_AUTHORIZE_URL
79}
80
81export function getOauthTokenUrl(): string {
82 const noumenaIssuerBaseUrl = getNoumenaIssuerBaseUrl()

Callers 2

buildAuthUrlFunction · 0.85
oauth.test.tsFile · 0.85

Calls 2

getOauthConfigFunction · 0.85

Tested by

no test coverage detected