@14kay/totp-auth
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @14kay/totp-auth

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

19.2 kB

Total Files

7

Last publish

Collaborators

  • 14kay