fastotpsdk
v1.0.6
Published
Sdk for secured fast OTP
Readme
FASTOTP Nodejs SDK
Nodejs SDK for FASTOTP
Table of Contents
Installation
$ npm i fastoptsdkInitialization
env
CLIENT_API_KEY='clientApiKey'const fastOtpClient = require("fastotpsdk")({
clientApiKey: process.env.CLIENT_API_KEY,
});You can get your clientApiKey from FastOtp dashboard
Usage
GenerateOTP
const generateOtp = await fastOtpClient.generate.generateOtp({
type,
identifier,
email,
validity
token_length,
})ValidateOtp
const validateOtp = fastOtpClient.validateOtp.validateOtp({
token,
identifier,
});GetOtp
const getOtp = fastOtpClient.getOtp.getOtp({ id });Contribution Guidelines
Contributions are welcome and encouraged. To contribute, fork this repo and raise a PR to the master branch, I will test and aprove if all is well. Please read here
