Skip to content

@capgo/capacitor-passkey

Keep your browser-style WebAuthn code in a Capacitor app while the plugin handles native passkey calls and native host patching.

브라우저 스타일 API

보존 navigator.credentials.create() 그리고 navigator.credentials.get() 앱에서 API 대신 패스 키 흐름을 다시 작성하지 않고 API을 사용하세요.

최소한의 앱 변경

플러그인 구성 추가한 후 CapacitorPasskey.autoShimWebAuthn() 시작 단계에서 code을 브라우저 구현과 가깝게 유지하세요.

빌드 시 네이티브 연결

sync 시 iOS 및 Android 호스트 프로젝트를 생성하여 수정할 필요가 없습니다.

  • shimWebAuthn(options?) 브라우저 스타일의 shim을 즉시 설치하고 HTTPS 원본 오버라이드 옵션을 포함합니다.
  • getConfiguration() 해당된 런타임 구성 파일을 읽습니다. plugins.CapacitorPasskey.
  • autoShimWebAuthn(options?) 해당 구성 파일을 읽고 앱 부트스트랩 중에 shim을 설치하는 단일 단계를 수행합니다.
  • createCredential(options)getCredential(options) JSON-안전한 WebAuthn 페이로드와 함께 네이티브 패스 키 API를 직접 호출합니다.
  • isSupported() 런타임 사용 가능 여부를 보고합니다. getPluginVersion() 네이티브 implementation 버전 마커를 반환합니다.