fia-react
FIA React Native by Fazpass.
Visit official website for more information about the product and see documentation at github documentation for more technical details.
Installation
npm install fia-react
Usage
import FIA, { OtpPromise, OtpAuthType } from 'fia-react';
FIA.initialize("MERCHANT_KEY", "MERCHANT_APP_ID");
var otpPromise: OtpPromise
FIA.otp().login("PHONE", (promise) => {
if (promise.hasException) {
let exception = promise.exception
return
}
otpPromise = promise
});
switch (otpPromise.authType) {
case OtpAuthType.Message:
break
case OtpAuthType.Miscall:
break
case OtpAuthType.He:
break
case OtpAuthType.FIA:
break
};
otpPromise.validate(
"OTP",
(err) => {
},
() => {
}
);
otpPromise.validateHe(
(err) => {
},
() => {
}
);
License
MIT