const { TwoFactor } = require( '@twofactor/sdk' );
const apiInstance = new TwoFactor( 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' );
// Now, you can do anything with the resources! :)
const harness = async () => {
try {
const data = await apiInstance.OTP.sendOtp( 'XXXXXXXXXX' );
console.log( data );
} catch ( error ) {
console.error( error );
}
};
harness();