Skip to content

@capgo/capacitor-passkey

ブラウザスタイルのWebAuthn codeをCapacitorアプリ内に保管し、プラグインはネイティブのパスキー呼び出しとネイティブホストのパッチ処理を管理します。

ブラウザスタイル API

Keep navigator.credentials.create()navigator.credentials.get() あなたのアプリ内に代わりに、カスタム API を回避するためにパスキーのフローを書き直すのではなく。

最小限のアプリ変更

プラグイン設定を一度追加し、 CapacitorPasskey.autoShimWebAuthn() 起動時に呼び出し、残りの WebAuthn code をブラウザ実装に近づける。

ビルド時ネイティブワイヤー

プラグインは生成されたiOSおよびAndroidホストプロジェクトをSync中にパッチするので、手動でファイルを編集する必要がなくなります。

  • shimWebAuthn(options?) ブラウザスタイルのシームをすぐにインストールし、HTTPSの起源オーバーライドがオプションで有効になります。
  • getConfiguration() 解決済みのランタイムの構成を読み取ります plugins.CapacitorPasskey.
  • autoShimWebAuthn(options?) その構成を読み取り、シームをアプリの起動時に1つのステップでインストールします。
  • createCredential(options)getCredential(options) JSONセーフなWebAuthnのペイロードを直接ネイティブのパスキーAPIに呼び出します。
  • isSupported() reports runtime availability and getPluginVersion() returns the native implementation version marker.

If you are using @capgo/capacitor-passkey to plan authentication and account flows, connect it with Using @capgo/capacitor-passkey for the native capability in Using @capgo/capacitor-passkey, @capgo/capacitor-social-login for the implementation detail in @capgo/capacitor-social-login, @capgo/capacitor-native-biometric 実装詳細のために@capgo/capacitor-native-biometric 2要素認証 実装詳細のために2要素認証、 SSO (企業) 実装詳細のためにSSO (企業).