The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update options.ts
Steven Tey2019a3744909
diff --git a/apps/web/lib/auth/options.ts b/apps/web/lib/auth/options.tsindex 3fa12b7396..765af3ceac 100644--- a/apps/web/lib/auth/options.ts+++ b/apps/web/lib/auth/options.ts@@ -5,7 +5,6 @@ import { subscribe } from "@/lib/resend";import { isStored, storage } from "@/lib/storage";import { UserProps } from "@/lib/types";import { ratelimit } from "@/lib/upstash";-import { PARTNERS_HOSTNAMES } from "@dub/utils";import { PrismaAdapter } from "@next-auth/prisma-adapter";import { waitUntil } from "@vercel/functions";import { sendEmail } from "emails";@@ -416,19 +415,6 @@ export const authOptions: NextAuthOptions = {};return session;},- redirect: async ({ url, baseUrl }) => {- // Allows relative callback URLs- if (url.startsWith("/")) return `${baseUrl}${url}`;-- // Allows callback URLs on the same origin or from additionally allowed hostnames- if (- new URL(url).origin === baseUrl ||- PARTNERS_HOSTNAMES.has(new URL(url).host)- )- return url;-- return baseUrl;- },},events: {async signIn(message) {