(loginWithClaudeAi?: boolean)
| 115 | } |
| 116 | |
| 117 | export 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 | |
| 129 | export function getOauthRolesUrl(): string { |
| 130 | // Legacy compatibility helper. The primary `code/` auth path now uses the |
no test coverage detected