0.0.1 • Published 2 years ago
@14kay/totp-auth v0.0.1
totp-auth
100% JS's TOTP authenticator with no dependencies. You can use it in any javascript environment
Quick Start
npm install @14kay/totp-auth --save import TOTPAuth from "@14kay/totp-auth"
const secret = "JBSWY3DPEHPK3PXP"
const code = TOTPAuth.totp(secret) // 666666Get time remaining
const timeRemaining = OTPAuth.timeRemaining() // 15code Verify
const isLegal = OTPAuth.totpVerify("123456") // true or falseLicense
0.0.1
2 years ago