diff --git a/src/containers/Auth/ConfirmOTP/ConfirmOTP.tsx b/src/containers/Auth/ConfirmOTP/ConfirmOTP.tsx index 82cdf9652..0efd3c0e9 100644 --- a/src/containers/Auth/ConfirmOTP/ConfirmOTP.tsx +++ b/src/containers/Auth/ConfirmOTP/ConfirmOTP.tsx @@ -113,17 +113,6 @@ export const ConfirmOTP = () => { }) .catch((error) => { setAuthError(t('We are unable to register, kindly contact your technical team.')); - // add log's - setLogs( - `onSubmitOTP:${{ - user: { - name: userObject.name, - phone: userObject.phone, - otp: values.OTP, - }, - }} URL:${VITE_GLIFIC_REGISTRATION_API}`, - 'info' - ); setLogs(error, 'error'); }); }; diff --git a/src/containers/Auth/Login/Login.tsx b/src/containers/Auth/Login/Login.tsx index 6a8e7678c..6caaa0ead 100644 --- a/src/containers/Auth/Login/Login.tsx +++ b/src/containers/Auth/Login/Login.tsx @@ -133,8 +133,6 @@ export const Login = () => { } else if (error?.response?.data?.error) { setAuthError(error?.response?.data?.error?.message); } - // add log's - // setLogs(`phoneNumber:${values.phoneNumber} URL:${USER_SESSION}`, 'info'); setLogs(error, 'error'); }); }; diff --git a/src/containers/Auth/ResetPassword/ResetPasswordConfirmOTP.tsx b/src/containers/Auth/ResetPassword/ResetPasswordConfirmOTP.tsx index 590754d9d..505990075 100644 --- a/src/containers/Auth/ResetPassword/ResetPasswordConfirmOTP.tsx +++ b/src/containers/Auth/ResetPassword/ResetPasswordConfirmOTP.tsx @@ -90,12 +90,6 @@ export const ResetPasswordConfirmOTP = () => { }) .catch((error) => { setAuthError(t('We are unable to update your password, please enter the correct OTP.')); - // add log's - setLogs( - `phoneNumber:${values.phoneNumber} otp: ${values.OTP} URL:${RESET_PASSWORD}`, - 'info' - ); - setLogs(error, 'error'); }); }; diff --git a/src/services/AuthService.tsx b/src/services/AuthService.tsx index c136573ab..3febcdad2 100644 --- a/src/services/AuthService.tsx +++ b/src/services/AuthService.tsx @@ -62,9 +62,6 @@ export const renewAuthToken = () => { .post(RENEW_TOKEN) .then((response: any) => response) .catch((error: any) => { - // add log's - setLogs(`renewalToken:${renewalToken} URL:${RENEW_TOKEN}`, 'info'); - setLogs(error, 'error'); // if we are not able to renew the token for some weird reason or if refresh token throw error; }); @@ -125,12 +122,6 @@ export const sendOTP = (phoneNumber: string, registrationToken?: string) => { }) .then((response) => response) .catch((error) => { - // add log's - setLogs( - `phoneNumber:${phoneNumber} registration:${user.registration} URL:${VITE_GLIFIC_AUTHENTICATION_API}`, - 'info' - ); - setLogs(error, 'error'); throw error; }); };