如何为使用 node.js opt-generator 生成的 OTP 添加过期时间?

问题描述 投票:0回答:0

我正在使用 opt-generator 生成 otp(一次性密码)。 但我想知道如何在
中对生成的otp(一次性密码)应用到期时间 节点.js.

这就是我生成 otp(一次性密码)的方式。

app.get('/',(req,res)=>{ const x = otpGenerator.generate(6, { lowerCaseAlphabets:false,upperCaseAlphabets: false, specialChars: false }); 重新发送(x); })

node.js forgot-password
© www.soinside.com 2019 - 2024. All rights reserved.