Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update request-email-change.ts

Kiran K05c69ca8cbb8
diff --git a/apps/web/lib/auth/request-email-change.ts b/apps/web/lib/auth/request-email-change.ts
index 63388a546d..cb34a443e1 100644
--- a/apps/web/lib/auth/request-email-change.ts
+++ b/apps/web/lib/auth/request-email-change.ts
@@ -67,7 +67,7 @@ export const requestEmailChange = async ({
const token = randomBytes(32).toString("hex");
const hashedToken = await hashToken(token, { secret: true });
- const expiresIn = 60 * 60 * 1000; // 1 hour
+ const expiresIn = 15 * 60 * 1000;
// Create a new verification token
await prisma.verificationToken.create({