Impossible to set custom expire time #3

Open
opened 2020-09-02 15:48:20 +00:00 by 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
Owner

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.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

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