Add biometric authentication registration functionality
- Implement biometric registration methods in appBridge - Add openBiometricRegistrationPopup and closeBiometricRegistrationPopup functions - Integrate biometric registration UI in home page and auth register component - Fix TypeScript errors in useAppBridge hook 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,7 @@ import { FooterItemActiveKey } from '@/entities/common/model/types';
|
||||
import { useStore } from '@/shared/model/store';
|
||||
import { StorageKeys } from '@/shared/constants/local-storage';
|
||||
import { setLocalStorage, getLocalStorage } from '@/shared/lib/web-view-bridge';
|
||||
import { useAppBridge } from '@/hooks/useAppBridge';
|
||||
|
||||
import { HeaderType } from '@/entities/common/model/types';
|
||||
import {
|
||||
@@ -20,7 +21,7 @@ import {
|
||||
|
||||
export const HomePage = () => {
|
||||
const { callLogin } = useUserInfo();
|
||||
|
||||
const { openBiometricRegistrationPopup } = useAppBridge();
|
||||
useSetHeaderTitle('');
|
||||
useSetHeaderType(HeaderType.Home);
|
||||
useSetFooterMode(true);
|
||||
@@ -85,7 +86,11 @@ export const HomePage = () => {
|
||||
setBottomBannerOn(sw);
|
||||
};
|
||||
const checkAuthRegisterOpen = () => {
|
||||
setAuthRegisterOn(true);
|
||||
openBiometricRegistrationPopup().then((isOpen) => {
|
||||
if(isOpen){
|
||||
setAuthRegisterOn(true);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -105,7 +110,6 @@ export const HomePage = () => {
|
||||
}, 500)
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/*useLoginMutation
|
||||
|
||||
Reference in New Issue
Block a user