- updated auth logic;

This commit is contained in:
Vitalii Kiiko
2025-05-20 16:29:07 +02:00
parent de0c480458
commit b2bc8d1fc9
3 changed files with 10 additions and 12 deletions

View File

@@ -41,7 +41,6 @@ const Login = () => {
}
const validateCallback = (data) => {
//console.log('login validateCallback', data)
if (data.status === 'SUCCESS') {
storeSet('setAuthData', {
token: data.data.token,
@@ -107,7 +106,7 @@ const Login = () => {
useEffect(() => {
const temp_token = searchParams.get('temp_token');
//console.log('login temp_token', temp_token);
if (!isNil(temp_token) && !isEmpty(temp_token)) {
errorMsgs.current.clear();
AuthenticationService.validateExistingUser(temp_token, validateCallback, validateError);