コンテンツにジャンプ

Getting Started

GitHub

You can use our AI-Assisted Setup to install the plugin. Add the Capgo skills to your AI tool using the following command:

__CAPGO_KEEP_0__スキルを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-verisoul
npx cap sync

セクション「Verisoul を設定」 configure() Call (1 回)、アプリケーション起動時早く呼び出してください。 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では、Verisoulタッチパターン収集が必要な場合にアプリがタッチイベントを前方に送信します。

await Verisoul.recordTouchEvent({
x: 120,
y: 240,
action: 'down',
});

プラットフォーム設定

タイトル:プラットフォーム設定
  • iOS設定 App Attest特権に関する注釈をカバーします。
  • Android設定 Verisoul Mavenリポジトリと権限に関する説明をカバーします。

Getting Startedから続けて

タイトル:Getting Startedから続けて

Capgoを使用している場合 Getting Started Verisoulセッションを統合するには、 @capgo/capacitor-verisoul CapgoのAPIの概要については iOSの設定 App Attestの注釈について Androidの設定 Gradleの設定 @capgo/capacitor-verisoul Capgoのプラグインチュートリアルについて