speakeasy
speakeasy copied to clipboard
Two-factor authentication for Node.js. Generate One-time passcode generator (HOTP/TOTP) with support for Google Authenticator.
``` const secret = speakeasy.generateSecret({ issuer: 'My site', length: 32, }); // secret -> HBWSKVZDKRPEU3T3G5HFI5CIKRNC4WSMN47T43SDNZKXGRCSNE4A ``` outputs a secret that has a length of `52` Adjusting the length down to...
Hi, I want to generate a code that is valid for only 5 minutes, but it doesn't work. **generation code** ` const speakeasy = require("@levminer/speakeasy"); const secret = speakeasy.generateSecret({ length:...
Hi, im currently having a hard time understanding the basics of TOTP. Below is my testing which I dont full undestand why the token is expiring (false) before the correct...