feat: google authentication added

This commit is contained in:
2025-09-22 23:07:52 +03:30
parent a42da2d4c4
commit 593e9c7c2c
5 changed files with 121 additions and 7 deletions

View File

@@ -9,11 +9,11 @@ import { CountryCodeSelector } from '../CountryCodeSelector';
import type { LoginResult, UserStatus } from '../../types/userTypes';
import { getUserStatusByPhoneNumberOrEmail } from '../../api/authorizationAPI';
import type { CountryCode } from '@/types/commonTypes';
import { GoogleAuthentication } from './GoogleAuthentication';
import { isPhoneNumber } from '@/utils/regexes/isValidPhoneNumber';
import { useToast } from '@rkheftan/harmony-ui';
import { useApi } from '@/hooks/useApi';
import type { GenerateTokenResponse } from '../../api/identityAPI';
import { GoogleAuthenticationV2 } from './GoogleAuthenticationV2';
export interface LoginRegisterFormProps {
loginRegisterValue: string;
@@ -173,7 +173,7 @@ export function LoginRegisterForm({
{t('loginForm.submitButton')}
</Button>
<GoogleAuthentication
<GoogleAuthenticationV2
authFactory={authFactory}
onGoogleAuthenticated={onGoogleAuthenticated}
disabled={userStatusLoading}