iOS 설정
__CAPGO_KEEP_0__와 관련된 도메인 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플러그인 구성 추가
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 에서 읽어집니다 capacitor.config.*.
origin: primary HTTPS relying-party origin used by the shim and direct APIdomains: 네이티브 구성에 동기화하는 동안 패치하는 추가 의존자 호스트 이름autoShim: __CAPGO_KEEP_0__ true 와 __CAPGO_KEEP_0__를 제어합니다. cap sync __CAPGO_KEEP_0__ 자동 구성 Hook당신이 __CAPGO_KEEP_0__를 실행할 때 bunx cap sync, __CAPGO_KEEP_0__ 플러그인이 생성된 네이티브 호스트 프로젝트를 업데이트합니다:
asset_statements __CAPGO_KEEP_0__ Hook은 당신의 웹사이트 신뢰 파일을 공개하지 않습니다. 당신은 여전히 __CAPGO_KEEP_2__해야합니다.플랫폼 가이드
https://your-domain/.well-known/apple-app-site-associationhttps://your-domain/.well-known/assetlinks.json