From c12f51d649ca541a8c47ac03c9f0c0ccf575333f Mon Sep 17 00:00:00 2001 From: pranalidhanavade Date: Thu, 25 Jul 2024 13:49:54 +0530 Subject: [PATCH] fix:client id and secret encryption Signed-off-by: pranalidhanavade --- src/components/Authentication/SignUpUser.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/Authentication/SignUpUser.tsx b/src/components/Authentication/SignUpUser.tsx index 7190612a3..29510b061 100644 --- a/src/components/Authentication/SignUpUser.tsx +++ b/src/components/Authentication/SignUpUser.tsx @@ -9,7 +9,7 @@ import { Form, Formik } from 'formik'; -import { checkUserExist, sendVerificationMail, setToLocalStorage } from '../../api/Auth.ts'; +import { checkUserExist, passwordEncryption, sendVerificationMail, setToLocalStorage } from '../../api/Auth.ts'; import { apiStatusCodes, storageKeys } from '../../config/CommonConstant.js'; import { useEffect, useState } from 'react'; import SignUpUserName from './SignUpUserName' @@ -46,9 +46,10 @@ const SignUpUser = () => { try { const payload = { email: email, - clientId: envConfig.PLATFORM_DATA.clientId, - clientSecret: envConfig.PLATFORM_DATA.clientSecrete + clientId: passwordEncryption(envConfig.PLATFORM_DATA.clientId), + clientSecret:passwordEncryption(envConfig.PLATFORM_DATA.clientSecrete) } + setVerifyLoader(true) const userRsp = await sendVerificationMail(payload); const { data } = userRsp as AxiosResponse;