가이드
자연어 생체 인증 튜토리얼
Using @capgo/capacitor-native-biometric
이 플러그인은 안드로이드와 iOS의 네이티브 생체 인증 API에 접근할 수 있도록 해줍니다.
설치
bun add @capgo/capacitor-native-biometric
bunx cap sync
이 플러그인이 노출하는 것
isAvailable- 생체 인증 장치가 있는지 확인합니다.verifyIdentity- 사용자에게 생체 인증을 요청합니다.getCredentials- 특정 서버에 저장된 자격증명을 가져옵니다.setCredentials- __CAPGO_KEEP_0__를 위한 주어진 자격 증명을 저장합니다.
예시 사용
isAvailable
비омет릭 인증 장치가 사용 가능한지 확인합니다.
import { NativeBiometric } from '@capgo/capacitor-native-biometric';
await NativeBiometric.isAvailable();
verifyIdentity
사용자에게 비омет릭 인증을 통해 인증하도록 유도합니다.
import { NativeBiometric } from '@capgo/capacitor-native-biometric';
await NativeBiometric.verifyIdentity();
getCredentials
__CAPGO_KEEP_0__를 위한 저장된 자격 증명을 가져옵니다.
import { NativeBiometric } from '@capgo/capacitor-native-biometric';
await NativeBiometric.getCredentials({} as GetCredentialOptions);
setCredentials
__CAPGO_KEEP_0__를 위한 주어진 자격 증명을 저장합니다.
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/