The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
some cleanup
Kiran K6b53920230a1
diff --git a/apps/web/lib/actions/check-account-exists.ts b/apps/web/lib/actions/check-account-exists.tsindex 290c5afd57..07dea7fb7f 100644--- a/apps/web/lib/actions/check-account-exists.ts+++ b/apps/web/lib/actions/check-account-exists.ts@@ -31,9 +31,8 @@ export const checkAccountExistsAction = actionClient}// Check SAML enforcement- const headersList = headers();+ const hostname = headers().get("host");const emailDomain = email.split("@")[1];- const hostname = headersList.get("host");const shouldCheckSAML =hostname && APP_HOSTNAMES.has(hostname) && !isGenericEmail(email);diff --git a/apps/web/lib/auth/options.ts b/apps/web/lib/auth/options.tsindex 306fff7d03..44868aeb7a 100644--- a/apps/web/lib/auth/options.ts+++ b/apps/web/lib/auth/options.ts@@ -592,9 +592,8 @@ export const authOptions: NextAuthOptions = {// Checks if SAML SSO is enforced for a given email domainexport const isSamlEnforcedForDomain = async (email: string) => {- const headersList = headers();+ const hostname = headers().get("host");const emailDomain = email.split("@")[1];- const hostname = headersList.get("host");if (!hostname ||