diff --git a/packages/clerk-js/src/utils/__tests__/url.test.ts b/packages/clerk-js/src/utils/__tests__/url.test.ts index ef37ded892..0eb24adf65 100644 --- a/packages/clerk-js/src/utils/__tests__/url.test.ts +++ b/packages/clerk-js/src/utils/__tests__/url.test.ts @@ -512,20 +512,22 @@ describe('isAllowedRedirect', () => { describe('createAllowedRedirectOrigins', () => { it('contains the default allowed origin values if no value is provided', async () => { - const frontendApi = 'https://somename.clerk.accounts.dev'; + const frontendApi = 'somename.clerk.accounts.dev'; const allowedRedirectOriginsValuesUndefined = createAllowedRedirectOrigins(undefined, frontendApi); const allowedRedirectOriginsValuesEmptyArray = createAllowedRedirectOrigins([], frontendApi); expect(allowedRedirectOriginsValuesUndefined).toEqual([ 'http://localhost', - `https://${getETLDPlusOneFromFrontendApi(frontendApi)}`, - `https://*.${getETLDPlusOneFromFrontendApi(frontendApi)}`, + `https://somename.accounts.dev`, + `https://*.somename.accounts.dev`, + `https://somename.clerk.accounts.dev/oauth/authorize*`, ]); expect(allowedRedirectOriginsValuesEmptyArray).toEqual([ 'http://localhost', - `https://${getETLDPlusOneFromFrontendApi(frontendApi)}`, - `https://*.${getETLDPlusOneFromFrontendApi(frontendApi)}`, + `https://somename.accounts.dev`, + `https://*.somename.accounts.dev`, + `https://somename.clerk.accounts.dev/oauth/authorize*`, ]); });