はじめに
このプラグインのインストール ステップとフル マークダウン ガイドを含むセットアップ プレースメントをコピーします。
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 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-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',});セクション「セッションIDを取得」
Verisoulが十分なネイティブ信号を収集した後、セッションIDを要求し、バックエンドに送信してください。バックエンドは、リスク評価のためにCapgoのサーバーサイド__CAPGO_KEEP_0__にアクセスしてください。After Verisoul has collected enough native signals, request the session ID and send it to your backend. Your backend should call Verisoul’s server-side API for the risk assessment.
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',});プラットフォーム設定
タイトル:プラットフォーム設定- iOS 設定 App Attest 資格の注釈をカバーします。
- Android 設定 Verisoul Maven リポジトリと権限について説明します。
続けて始めましょう
「続けて始めましょう」のセクションCapgoを使用している場合 Getting Started Verisoulセッションを統合するためにCapgoを使用している場合、@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-verisoulと接続してください。 @capgo/capacitor-verisoul for the API overview, App Attestの注釈について Androidの設定 Gradleの設定 Capgoを使用して@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-verisoulを使用します Using @capgo/capacitor-verisoul プラグインチュートリアル用に。