0.0.9 • Published 1 year ago

totp-basic v0.0.9

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year 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

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago