32 lines
863 B
TypeScript
32 lines
863 B
TypeScript
/*
|
|
* File: BiometricLogin.tsx
|
|
* Description: Component for biometric login button
|
|
* Design & Developed by Tech4Biz Solutions
|
|
* Copyright (c) Spurrin Innovations. All rights reserved.
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { Button } from '../../../../shared/src/components/Button';
|
|
import { useBiometric } from '../hooks/useBiometric';
|
|
|
|
/**
|
|
* BiometricLogin - button to trigger biometric authentication
|
|
*/
|
|
const BiometricLogin: React.FC = () => {
|
|
const { authenticate } = useBiometric();
|
|
|
|
const handleBiometric = async () => {
|
|
await authenticate();
|
|
// TODO: Handle result and login
|
|
};
|
|
|
|
return <Button title="Login with Biometric" onPress={handleBiometric} />;
|
|
};
|
|
|
|
export default BiometricLogin;
|
|
|
|
/*
|
|
* End of File: BiometricLogin.tsx
|
|
* Design & Developed by Tech4Biz Solutions
|
|
* Copyright (c) Spurrin Innovations. All rights reserved.
|
|
*/
|