Set reset token expiry to 24 hours

This commit is contained in:
Ephraim Atta-Duncan
2023-06-07 11:02:50 +00:00
parent 9cfbb1dec9
commit fe6561f596

View File

@ -38,7 +38,7 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
const token = crypto.randomBytes(64).toString("hex"); const token = crypto.randomBytes(64).toString("hex");
const expiry = new Date(); 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; let passwordResetToken;
try { try {