()
| 120 | // Note that this gets you the profile URL given the current portal URL, not the |
| 121 | // specific profile URL of the logged in account. |
| 122 | export async function getGeneralProfileUrl(): Promise<string> { |
| 123 | const portalUrl = await (async (): Promise<string> => { |
| 124 | const url = await getGeneralPortalUrl(); |
| 125 | if (url === undefined) { |
| 126 | return 'https://www.codeium.com'; |
| 127 | } |
| 128 | return url; |
| 129 | })(); |
| 130 | console.log('Portal URL used for profile:', portalUrl); |
| 131 | return `${portalUrl}/profile`; |
| 132 | } |
| 133 | |
| 134 | // default allowlist |
| 135 | export const defaultAllowlist = [ |
no test coverage detected