(loginWithClaudeAi?: boolean)
| 69 | } |
| 70 | |
| 71 | export 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 | |
| 81 | export function getOauthTokenUrl(): string { |
| 82 | const noumenaIssuerBaseUrl = getNoumenaIssuerBaseUrl() |
no test coverage detected