0.0.1 • Published 1 year ago

@14kay/totp-auth v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

totp-auth

npm version npm downloads bundle JSDocs

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) // 666666

Get time remaining

    const timeRemaining = OTPAuth.timeRemaining() // 15

code Verify

    const isLegal = OTPAuth.totpVerify("123456") // true or false

License

MIT License © 2024-PRESENT 14K

0.0.1

1 year ago