feat: multi client id use added
This commit is contained in:
@@ -13,6 +13,7 @@ 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';
|
||||
|
||||
export interface LoginRegisterFormProps {
|
||||
loginRegisterValue: string;
|
||||
@@ -22,7 +23,10 @@ export interface LoginRegisterFormProps {
|
||||
authType: AuthType;
|
||||
setAuthType: Dispatch<AuthType>;
|
||||
onLoginRegisterSubmit: (value: string, userStatus: UserStatus) => void;
|
||||
onGoogleAuthenticated: (loginResult: LoginResult) => void;
|
||||
onGoogleAuthenticated: (
|
||||
loginResult: LoginResult,
|
||||
tokenResponse: GenerateTokenResponse,
|
||||
) => void;
|
||||
authFactory: AuthFactory;
|
||||
}
|
||||
|
||||
@@ -156,7 +160,7 @@ export function LoginRegisterForm({
|
||||
</Button>
|
||||
|
||||
<GoogleAuthentication
|
||||
authReturnUrl={authReturnUrl}
|
||||
authFactory={authFactory}
|
||||
onGoogleAuthenticated={onGoogleAuthenticated}
|
||||
disabled={userStatusLoading}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user