메인 콘텐츠로 건너뛰기
플러그인으로 돌아가기
@capgo/capacitor-native-biometric
튜토리얼
@capgo/capacitor-native-biometric

네이티브 바이오메트릭스

얼굴 인식, 터치 ID 및 안드로이드 바이오메트릭스 API를 사용한 안전한 인증

장치 테스트

__CAPGO_KEEP_0__ 앱을 다운로드하고 QR코드 __CAPGO_KEEP_1__를 스캔하세요.

__CAPGO_KEEP_0__을 앱 스토어에서 다운로드하세요

Download the Capgo app, then scan the QR code.

네이티브 바이오메트릭스 플러그인 미리보기 QR code

이 플러그인은 @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);

전체 참조

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의 구현 세부 정보를 참조하세요.