Skip to content

@capgo/capacitor-passkey

code Capacitor를 사용하여 브라우저 스타일의 WebAuthn code를 Capacitor 앱에 보관하고 플러그인은 네이티브 패스키 호출과 네이티브 호스트 패칭을 처리합니다.

웹 브라우저 스타일 API

보존 navigator.credentials.create() 그리고 navigator.credentials.get() 앱 내에서 API 대신에 사용하여 사용자 인증 흐름을 다시 작성하지 않도록 하세요.

최소한의 앱 변경

플러그인 구성은 한 번만 추가하고 CapacitorPasskey.autoShimWebAuthn() during bootstrap, and keep the rest of your WebAuthn code close to the browser implementation.

웹 브라우저 구현과 유사한 WebAuthn __CAPGO_KEEP_0__를 앱 내에서 유지하세요.

빌드 시 네이티브 연결

Core API

Core API
  • shimWebAuthn(options?) 브라우저 스타일의 shim을 즉시 설치하고 HTTPS 원본 오버라이드 옵션을 제공합니다.
  • getConfiguration() runtime config을 읽고 plugins.CapacitorPasskey.
  • autoShimWebAuthn(options?) runtime config을 읽고 shim을 앱 부트스트랩 중에 한 번에 설치합니다.
  • createCredential(options) and getCredential(options) native passkey API를 직접 호출하여 JSON-safe WebAuthn 페이로드를 사용합니다.
  • isSupported() 실행 중인 런타임의 가용성을 보고합니다. getPluginVersion() native implementation 버전 마커를 반환합니다.

@capgo/capacitor-passkey에서 계속하세요.

@capgo/capacitor-passkey에서 계속하세요

@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-passkey를 사용 중이라면 @capgo/capacitor-passkey를 @capgo/capacitor-passkey와 연결하세요. @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-passkey를 사용하여 @capgo/capacitor-passkey를 사용하여 native 기능을 사용하세요. @capgo/capacitor-social-login를 사용하여 @capgo/capacitor-social-login의 구현 세부 사항을 사용하세요. @capgo/capacitor-social-login @capgo/capacitor-native-생체인식 for the implementation detail in @capgo/capacitor-native-생체인식, 두 단계 인증 for the implementation detail in 두 단계 인증, and SSO (기업) for the implementation detail in SSO (기업).