iOS 설정
관련 도메인 및 apple-app-site-association.
이 플러그인에 대한 설치 단계 및 전체 마크다운 가이드를 포함한 설정 프롬프트를 복사하십시오.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-passkey`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/passkey/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
패키지를 설치하세요
bun add @capgo/capacitor-passkey자연 프로젝트 동기화
bunx cap sync__CAPGO_KEEP_0__를 사용하는 기본 HTTPS 의존 파티 원본을 shim 및 직접 사용하는 원본으로 읽습니다.
import type { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = { appId: 'app.capgo.passkey.example', appName: 'My App', webDir: 'dist', plugins: { CapacitorPasskey: { origin: 'https://signin.example.com', autoShim: true, domains: ['signin.example.com'], }, },};
export default config;설치 중에 shim을 설치합니다.
import { CapacitorPasskey } from '@capgo/capacitor-passkey';
await CapacitorPasskey.autoShimWebAuthn();정상적인 WebAuthn 흐름을 유지하세요.
const registration = await navigator.credentials.create({ publicKey: registrationOptions,});
const authentication = await navigator.credentials.get({ publicKey: requestOptions,});설정은 plugins.CapacitorPasskey in capacitor.config.*.
origin: primary HTTPS relying-party origin used by the shim and direct APIdomains: 추가 의존 파티 호스트 이름을 native config에 동기화하는 동안 패치합니다.autoShim: __CAPGO_KEEP_0__ true 와 __CAPGO_KEEP_0__를 제어합니다. cap sync 자동 구성 Hook당신이 실행할 때 bunx cap sync, 플러그인이 생성된 네이티브 호스트 프로젝트를 업데이트합니다:
asset_statements 메타데이터와 생성된 리소스 사용하는 매니페스트Hook은 여전히 당신의 웹사이트를 신뢰하는 파일을 호스팅해야합니다. 당신의 파일을 공개하지 않습니다.
https://your-domain/.well-known/apple-app-site-associationhttps://your-domain/.well-known/assetlinks.jsoniOS 설정
관련 도메인 및 apple-app-site-association.
Android 설정
디지털 자산 링크 및 assetlinks.json.
백엔드 참고 사항
오리진 검증 및 Android 주의 사항.
Capgo를 사용하여 Getting Started 인증 및 계정 흐름을 계획하고 연결하려면 capgo/capacitor-passkey를 사용하여 capgo/capacitor-passkey의 내장 기능을 사용하여 capgo/capacitor-social-login capgo/capacitor-social-login의 구현 세부 정보를 사용하여 capgo/capacitor-passkey capgo/capacitor-passkey의 구현 세부 정보를 사용하여 capgo/capacitor-native-biometric capgo/capacitor-native-biometric의 구현 세부 정보를 사용하여 두 단계 인증 두 단계 인증의 구현 세부 정보를 사용하여