Impossible to set custom expire time #3

開放中
建立於 2020-09-02 15:48:20 +00:00 由 Ghost · 1 comment

Hi, thanks for you project

I can't find how to customize an expire time for generated token?

generateToken and verifyToken doesn't support options passing to notp dependency

Hi, thanks for you project I can't find how to customize an expire time for generated token? generateToken and verifyToken doesn't support options passing to notp dependency
擁有者

For custom behavior check out notp:

https://github.com/guyht/notp

return notp.totp.verify(token, bin, { window: 1, time: 30 });

Also, I'm not opposed to a PR to expose this functionality.

For custom behavior check out `notp`: https://github.com/guyht/notp ```js return notp.totp.verify(token, bin, { window: 1, time: 30 }); ``` Also, I'm not opposed to a PR to expose this functionality.
登入 才能加入這對話。
未選擇標籤
2 參與者
通知
截止日期
未設定截止日期。
先決條件

未設定先決條件。

參考: coolaj86/node-authenticator.js#3
No description provided.