Skip to content

Releases: FinotiLucas/2fa-node

v0.0.6

22 Jan 14:57

Choose a tag to compare

This change provides greater flexibility in configuring the number of secret bytes for the authenticator while maintaining backward compatibility.

  • Added optional numberOfSecretBytes parameter to the Payload interface to specify the number of authenticator secret bytes (default: 20).

  • Added the numberOfSecretBytes parameter in the config to use the value from the Payload or fallback to the default.

  • Adjusted and added corresponding test cases to validate the new parameter and ensure compatibility with existing behavior.

Full Changelog: v0.0.5...v0.0.6

Full Changelog: v0.0.5...v0.0.6

v0.0.5

20 Jan 01:27

Choose a tag to compare

Complete OTP implementation using otplib - TOTP and HOTP

  • Added support for TOTP (Time-based One-Time Password) and HOTP (HMAC-based One-Time Password)
  • Implemented functions for generating and validating authentication tokens.

Full Changelog: https://github.com/FinotiLucas/2fa-node/commits/v0.0.5