Skip to content

Open-source status page, incident response and uptime monitoring

fix: magic link NaN error (#1128)

Maximilian Kaske9e0b04cdd226
diff --git a/apps/web/src/lib/auth/index.ts b/apps/web/src/lib/auth/index.ts
index 6d0e15aed..840fe31b4 100644
--- a/apps/web/src/lib/auth/index.ts
+++ b/apps/web/src/lib/auth/index.ts
@@ -58,6 +58,7 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
// REMINDER: only used in dev mode
if (params.account?.provider === "resend") {
+ if (Number.isNaN(Number(params.user.id))) return true;
await db
.update(user)
.set({ updatedAt: new Date() })