Skip to content

Object-oriented OTP library #1

@jakelee8

Description

@jakelee8

@markbao @railsstudent This rewrite of Speakeasy drops legacy support and simplifies usage by including sensible quickstart defaults. By default:

  • Two-sided window for both TOTP and HOTP
  • Default window=1
  • Default period=30, renamed from step to match URL parameter
  • API only accessible via new TOTP({...}) and new HOTP({...}).

Issues:

  • Type checking unnecessary in TypeScript, but not available in plain JS. Add type checking or assume developer knows best? Considering number of usage issues in Speakeasy...
  • Update documentation
  • Update build/CI
  • Convert floating point inputs to integers, test floating point inputs, e.g. {time: 100.123}
  • Release libotp aka Speakeasy 3.0

To build and test:

npm install
npm run prepare
npm run test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions