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.
CapgoのAI-Assisted Setupを使用してプラグインをインストールできます。AIツールにCapgoスキルを追加するには、以下のコマンドを実行してください。
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins次に、以下のプロンプトを使用してください。
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-passkey` plugin in my project.Manual Setupを使用する場合は、以下のコマンドを実行してください。プラットフォーム固有の指示に従ってください。
パッケージをインストール
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 in capacitor.config.*.
origin: primary HTTPS relying-party origin used by the shim and direct APIdomains: デフォルト値autoShimin true 日本語 cap sync 自動設定のハックあなたが実行するとき bunx cap syncプラグインは、生成されたネイティブホストプロジェクトを更新します:
asset_statements メタデータと生成されたリソースがマニフェストによって使用されるハックはあなたのウェブサイトの信頼ファイルを公開しません。まだあなたはホストする必要があります:
https://your-domain/.well-known/apple-app-site-associationhttps://your-domain/.well-known/assetlinks.jsoniOSの設定
関連するドメインと apple-app-site-association.
Androidの設定
デジタルアセットリンクと assetlinks.json.
バックエンドの注記
オリジン検証とAndroidの注意点
あなたが使用している Getting Started 認証とアカウントフローの計画に使用している場合、@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-passkeyと接続してください Using @capgo/capacitor-passkey native capability in @capgo/capacitor-passkey について @capgo/capacitor-ソーシャルログイン 実装詳細については @capgo/capacitor-social-login を参照してください @capgo/capacitor-パスキー 実装詳細については @capgo/capacitor-passkey を参照してください @capgo/capacitor-nativo-biometric 実装詳細については @capgo/capacitor-native-biometric を参照してください。 2要素認証 2要素認証の実装詳細については参照してください。