The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update index.ts
Steven Tey7e6bad6ff300
diff --git a/apps/web/lib/auth/index.ts b/apps/web/lib/auth/index.tsindex 77454cb248..ddbee3da5a 100644--- a/apps/web/lib/auth/index.ts+++ b/apps/web/lib/auth/index.ts@@ -295,8 +295,9 @@ export const withAuth = (});}- // if domain is defined, check if:- // it's a dub domain and domainChecks is required, check if the user is part of the dub workspace+ // if domain is defined:+ // - it's a dub domain and domainChecks is required, check if the user is part of the dub workspace+ // - it's a custom domain, check if the domain belongs to the workspaceif (domain) {if (isDubDomain(domain)) {if (domainChecks && workspace.id !== DUB_WORKSPACE_ID) {