This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* how to use? | |
* install node.js + npm, copy the code in a clean folder, | |
* run `npm i totp-generator` | |
* run `node main.mjs <OTP-CODE>` | |
* you must have the OTP code from the service provider itself (which you get when you did the Multi-factor setup) | |
*/ | |
import { TOTP } from "totp-generator"; |