Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: lower email verification expiration time

Marc Seitzc7e2cf88457f
diff --git a/pages/api/views.ts b/pages/api/views.ts
index a9ce59b1..117f37e3 100644
--- a/pages/api/views.ts
+++ b/pages/api/views.ts
@@ -134,7 +134,7 @@ export default async function handle(
if (link.emailAuthenticated && !token) {
const token = newId("email");
const expiresAt = new Date();
- expiresAt.setHours(expiresAt.getHours() + 24); // token expires in 24 hour
+ expiresAt.setHours(expiresAt.getHours() + 1); // token expires in 1 hour
await prisma.verificationToken.create({
data: {