장치 테스트
__CAPGO_KEEP_0__ 앱을 다운로드하고 QR코드 __CAPGO_KEEP_1__를 스캔하세요.
이 플러그인은 @capgo/capacitor-native-biometric을 사용합니다.
이 플러그인은 안드로이드 및 iOS의 네이티브 바이오메트릭스 API에 대한 접근을 제공합니다.
설치
bun add @capgo/capacitor-native-biometric
bunx cap sync
이 플러그인이 노출하는 것
isAvailable- 바이오메트릭스 인증 장치가 있는지 확인합니다.verifyIdentity- 사용자에게 바이오메트릭스 인증을 요청합니다.getCredentials- 특정 서버에 저장된 자격증명을 가져옵니다.setCredentials- 특정 서버에 저장된 자격증명을 저장합니다.
예시 사용
isAvailable
비омет릭 인증 장치가 있는지 확인합니다.
import { NativeBiometric } from '@capgo/capacitor-native-biometric';
await NativeBiometric.isAvailable();
verifyIdentity
사용자에게 비омет릭 인증을 요청합니다.
import { NativeBiometric } from '@capgo/capacitor-native-biometric';
await NativeBiometric.verifyIdentity();
getCredentials
지정된 서버의 저장된 자격증명을 가져옵니다.
import { NativeBiometric } from '@capgo/capacitor-native-biometric';
await NativeBiometric.getCredentials({} as GetCredentialOptions);
setCredentials
지정된 서버에 저장된 자격증명을 저장합니다.
import { NativeBiometric } from '@capgo/capacitor-native-biometric';
await NativeBiometric.setCredentials({} as SetCredentialOptions);
전체 참조
- GitHub : https://github.com/Cap-go/capacitor-native-biometric/
- 문서: /docs/plugins/native-biometric/
Keep going from Using @capgo/capacitor-native-biometric
Capacitor Native Biometric을 사용 중이라면 Using @capgo/capacitor-native-biometric 인증 및 계정 흐름을 계획하고 연결하려면 @capgo/capacitor-native-biometric for the implementation detail in @capgo/capacitor-native-biometric, Getting Started Getting Started의 구현 세부 정보를 참조하세요. @capgo/capacitor-social-login for the implementation detail in @capgo/capacitor-social-login, @capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-passkey, and Two-factor authentication Two-factor authentication의 구현 세부 정보를 참조하세요.