1.0.3 • Published 1 year ago

otp-builder v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Here're some of the project's best features:

  • OTP generation
  • OTP verification
  • OTP storage with custom identifiers
  • Configurable expiry time
  • Secure OTP generation using secret keys
npm install otp-builder
PropertyDescription
digitsThe number of digits in the generated OTP. (default = 4)
expirySecondsThe time in seconds after which the OTP will expire. Here, it's set to 35 seconds, so the OTP will be valid for 35 seconds from the time of generation. (default = 30 )
identifierA unique identifier associated with the OTP. This could be an email address, phone number, or any other unique identifier for the user or session. In this example, it's set to "example@gmail.com".
secretA secret key used to enhance the security of the OTP generation process. It's a string of random characters that adds an extra layer of randomness and security to the OTP.
1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago