Skip to content

xang555/2fa-auth-example

Repository files navigation

2fa-auth-example

example project!. show case how to use speakeasy to create 2fa authentication

install

clone project

$ cd 2fa-auth-example
$ yarn install
$yarn start

rounter example

  • GET (/totp) for example implement Time-Based One-time Password (TOTP) algorithm
  • GET (/hotp) for example implement HMAC-Based One-Time Password (HOTP) algorithm