Getting Started
このプラグインのインストール手順と完全なマークダウンガイドを含むセットアップコマンドをコピーしてください。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-verisoul`
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/verisoul/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.
インストール
セクション:インストールAI-Assisted セットアップを使用してプラグインをインストールできます。次のコマンドを使用して、Capgo スキルをAIツールに追加します。
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-verisoul` plugin in my project.Manual セットアップを使用する場合は、次のコマンドを実行してプラグインをインストールし、以下のプラットフォーム固有の指示に従ってください。
npm install @capgo/capacitor-verisoulnpx cap syncVerisoul を構成する
「Verisoul を構成する」セクションCall configure() アプリケーション起動時に一度だけ、早い段階で使用してください。 sandbox for testing and prod for production traffic.
import { Verisoul } from '@capgo/capacitor-verisoul';
await Verisoul.configure({ environment: 'prod', projectId: 'YOUR_PROJECT_ID',});セッションIDを取得
セッションIDを取得Verisoulが十分なネイティブ信号を収集した後、セッションIDを要求し、バックエンドに送信します。バックエンドは、リスク評価のためにVerisoulのサーバーサイドAPIを呼び出す必要があります。
const { sessionId } = await Verisoul.getSessionId();
await fetch('/api/risk/verisoul', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ sessionId }),});アカウント変更時リセット
セクション「アカウント変更時リセット」呼び出し reinitialize() ユーザー コンテキストが変更された場合、例えばログアウト後に別のアカウントでログインした場合。
await Verisoul.reinitialize();Androidタッチイベント
セクション「Androidタッチイベント」Android上で、タッチイベントを前方に転送する必要がある場合、Verisoulタッチパターン収集を実行します。
await Verisoul.recordTouchEvent({ x: 120, y: 240, action: 'down',});プラットフォーム設定
セクション「プラットフォーム設定」始めから続けて
セクション「始めから続けて」Verisoul セッションを使用している場合 Getting Started Verisoul セッションを統合するには、 @capgo/capacitor-verisoul API の概要については、 iOS 設定 App Attest の注釈については、 Android 設定 Gradle 設定については、 Using @capgo/capacitor-verisoul __CAPGO_KEEP_0__ のプラグインチュートリアルについては、