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

Function getOauthSuccessUrl

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

Source from the content-addressed store, hash-verified

115}
116
117export function getOauthSuccessUrl(loginWithClaudeAi?: boolean): string {
118 const noumenaOauthWebBaseUrl = getNoumenaOauthWebBaseUrl()
119 if (noumenaOauthWebBaseUrl) {
120 return `${noumenaOauthWebBaseUrl}/oauth/code/success?app=noumena-code`
121 }
122 // Legacy web success pages. Keep behavior stable until platform owns
123 // explicit Noumena success routes.
124 return loginWithClaudeAi
125 ? getOauthConfig().CLAUDEAI_SUCCESS_URL
126 : getOauthConfig().CONSOLE_SUCCESS_URL
127}
128
129export function getOauthRolesUrl(): string {
130 // Legacy compatibility helper. The primary `code/` auth path now uses the

Callers 4

handleSuccessRedirectMethod · 0.85
handleErrorRedirectMethod · 0.85
oauth.test.tsFile · 0.85

Calls 2

getOauthConfigFunction · 0.85

Tested by

no test coverage detected