0.0.9 • Published 2 years ago

totp-basic v0.0.9

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

totp-basic

A totp library in typescript that requires no external libraries.

Uses crypto.subtle API support, so that it can be used in browsers, as-is! It can also be used in cloudflare-workers amongst others!

Usage

npm install totp-basic
import {verifyTOTP, generateTOTP} from "totp-basic";
        const secret = 'mysecret';
        const otp = await generateTOTP(secret);
        const isValid = await verifyTOTP(secret, otp);
0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago