otp-reader
v1.0.0
Published
A simple JavaScript library to read OTP codes using the WebOTP API.
Downloads
12
Maintainers
Readme
OTP Reader
A simple JavaScript library to read OTP codes using the WebOTP API.
Installation
npm install otp-reader
Usage
import OTPReader from 'otp-reader';
const otpReader = new OTPReader();
otpReader.getCode()
.then(code => {
console.log('OTP Code:', code);
})
.catch(err => {
console.error('Error:', err);
});