@narumir/totp
v0.0.1
Published
totp lib for nodejs
Downloads
1
Readme
nodejs용 TOTP 라이브러리 입니다.
https://datatracker.ietf.org/doc/html/rfc6238
install
$ npm install @narumir/totp
use
import {
TOTP,
} from "@narumir/totp";
const otp = new TOTP({ algorithm: "sha1" });
const token = otp.generate("TL5BNHAVM3OOD4I2", Date.now());
console.log(token);