fix: login result handle changed to a singular function

This commit is contained in:
2025-08-21 14:36:07 +03:30
parent 4d84a29bda
commit 74fa41c1c0
6 changed files with 33 additions and 30 deletions

View File

@@ -6,7 +6,7 @@ import type { AuthType } from '../../types/authTypes';
import { isEmail } from '@/utils/regexes/isEmail';
import { AuthenticationCard } from '../AuthenticationCard';
import { CountryCodeSelector } from '../CountryCodeSelector';
import type { UserStatus } from '../../types/userTypes';
import type { LoginResult, UserStatus } from '../../types/userTypes';
import { getUserStatusByPhoneNumberOrEmail } from '../../api/authorizationAPI';
import type { CountryCode, GUID } from '@/types/commonTypes';
import { GoogleAuthentication } from './GoogleAuthentication';
@@ -23,7 +23,7 @@ export interface LoginRegisterFormProps {
setAuthType: Dispatch<AuthType>;
onLoginRegisterSubmit: (value: string, userStatus: UserStatus) => void;
authReturnUrl: string;
onGoogleAuthenticated: (userId: GUID) => void;
onGoogleAuthenticated: (loginResult: LoginResult) => void;
}
export function LoginRegisterForm({