totp-generator lets you generate TOTP tokens from a TOTP key
How to use
var totp = ;var token = ;console; // prints a 6 digit time base token based on inputed key and time
Works with these token requirements
- 30 sec epoch interval
- 6 digit tokens
What do I use this library for?
- E2E tests (where you need to login with 2-factor authentication)