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.
インストール
「インストール」と題されたセクションCapgoのAIアシストセットアップを使用してプラグインをインストールできます。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-verisoul` plugin in my project.Manual Setupを選択する場合は、以下のコマンドを実行してプラグインをインストールし、下記のプラットフォーム固有の手順に従ってください。
npm install @capgo/capacitor-verisoulnpx cap syncVerisoulを設定
セクション「Verisoulを設定」一度、初期化時にアプリケーションを呼び出してください。 configure() テスト用に使用してください。 sandbox 生産用トラフィック用に使用してください。 prod コピー
import { Verisoul } from '@capgo/capacitor-verisoul';
await Verisoul.configure({ environment: 'prod', projectId: 'YOUR_PROJECT_ID',});__CAPGO_KEEP_0__
セッションIDを取得するNativeシグナルを収集した後、セッションIDを要求し、バックエンドに送信します。バックエンドは、リスク評価のためにVerisoulのサーバーサイドAPIを呼び出す必要があります。
const { sessionId } = await Verisoul.getSessionId();
await fetch('/api/risk/verisoul', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ sessionId }),});アカウント変更時リセット
アカウント変更時リセットCall reinitialize() ユーザー コンテキストが変更された場合、ログアウト後に別のアカウントでログインした場合など。
await Verisoul.reinitialize();クリップボードにコピー
await Verisoul.recordTouchEvent({ x: 120, y: 240, action: 'down',});プラットフォーム設定
プラットフォーム設定Getting Startedから続けてください
Getting Startedから続けてくださいVerisoulセッションを統合する場合は、@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-verisoulと接続してください Getting Started If you are using @capgo/capacitor-verisoul APIの概要のために iOSのセットアップ __CAPGO_KEEP_0__のApp Attestのための注記 Androidのセットアップ Gradleのセットアップのための @capgo/capacitor-verisoulの使用 プラグインのチュートリアルのための