Using @capgo/capacitor-native-biometric
이 플러그인은 안드로이드 및 iOS에서 native biometric api에 접근할 수 있도록 해줍니다.
설치
bun add @capgo/capacitor-native-biometric
bunx cap sync
What This Plugin Exposes
isAvailable- 안드로이드 및 iOS에서 biometric 인증 장치가 있는지 확인합니다.verifyIdentity- 사용자에게 biometric 인증을 요청합니다.getCredentials- 특정 서버에 저장된 자격증명을 가져옵니다.setCredentials- 특정 서버에 저장된 자격증명을 저장합니다.
Example Usage
isAvailable
- biometric 인증 장치가 있는지 확인합니다.
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/
Using @capgo/capacitor-native-biometric
Capacitor Native Biometric을 사용 중이라면 Using @capgo/capacitor-native-biometric Capacitor Native Biometric을 사용하여 인증 및 계정 흐름을 계획하고 있습니다. @capgo/capacitor-native-biometric capgo/capacitor-native-생체인증 시작하기 __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-social-login capgo/capacitor-social-login capgo/capacitor-passkey capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-passkey, and __CAPGO_KEEP_0__ 앱을 __CAPGO_KEEP_0__와 함께 150+ 프로덕션 준비 완료 플러그인