totp-ts
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

TOTP.ts

A TypeScript implementation of RFC6238 https://www.rfc-editor.org/rfc/rfc6238

examples

An example is in src/example.ts

import { generateTOTPFromUri } from "totp-ts";

const uri = 
  "otpauth://totp/hello:world?secret=aaaaaaaa&issuer=so298";

console.log(generateTOTPFromUri(uri));

/totp-ts/

    Package Sidebar

    Install

    npm i totp-ts

    Weekly Downloads

    1

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    27.1 kB

    Total Files

    30

    Last publish

    Collaborators

    • so298