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:
Jay Sheen
2025-09-15 14:09:28 +09:00
parent 9b8378ccad
commit e00dc65d7b
5 changed files with 67 additions and 8 deletions

View File

@@ -1,19 +1,21 @@
import { IMAGE_ROOT } from '@/shared/constants/common';
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
import { AuthRegisterProps } from '../model/types';
import { motion } from 'framer-motion';
import { useAppBridge } from '@/hooks/useAppBridge';
export const AuthRegister = ({
setAuthRegisterOn,
authRegisterOn,
}: AuthRegisterProps) => {
const { navigate } = useNavigate();
const { registerBiometric, closeBiometricRegistrationPopup } = useAppBridge();
const onClickToClose = () => {
closeBiometricRegistrationPopup();
setAuthRegisterOn(false);
};
const onClickToRegister = () => {
// register
registerBiometric();
setAuthRegisterOn(false);
};
const variants = {