config#REACT_APP_GLIFIC_AUTHENTICATION_API TypeScript Examples
The following examples show how to use
config#REACT_APP_GLIFIC_AUTHENTICATION_API.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AuthService.tsx From glific-frontend with GNU Affero General Public License v3.0 | 6 votes |
sendOTP = (phoneNumber: string, registration = 'false') =>
axios
.post(REACT_APP_GLIFIC_AUTHENTICATION_API, {
user: {
phone: phoneNumber,
registration,
},
})
.then((response) => response)
.catch((error) => {
// add log's
setLogs(
`phoneNumber:${phoneNumber} registration:${registration} URL:${REACT_APP_GLIFIC_AUTHENTICATION_API}`,
'info'
);
setLogs(error, 'error');
throw error;
})