@msg91comm/sendotp-react-native
Version:
Send OTP SDK for react native application.
10 lines • 398 B
text/typescript
const createEndpoint = (endpoint) => {
const url = 'https://control.msg91.com/api/v5/widget'
return `${url}${endpoint}`;
};
export const apiUrls = {
sendOTP: createEndpoint('/sendOtpMobile'),
verifyOTP: createEndpoint('/verifyOtp'),
retryOTP: createEndpoint('/retryOtp'),
getWidgetProcess: createEndpoint('/getWidgetProcess?widgetId=:widgetId&tokenAuth=:tokenAuth')
};