Skip to content

The Open Source DocuSign Alternative.

Set reset token expiry to 24 hours

Ephraim Atta-Duncanfe6561f59690
diff --git a/apps/web/pages/api/auth/forgot-password.ts b/apps/web/pages/api/auth/forgot-password.ts
index 07d57dce7..9a17edd9f 100644
--- a/apps/web/pages/api/auth/forgot-password.ts
+++ b/apps/web/pages/api/auth/forgot-password.ts
@@ -38,7 +38,7 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
const token = crypto.randomBytes(64).toString("hex");
const expiry = new Date();
- expiry.setHours(expiry.getHours() + 1); // Set expiry to one hour from now
+ expiry.setHours(expiry.getHours() + 24); // Set expiry to one hour from now
let passwordResetToken;
try {