Skip to main content
Back to plugins
@capgo/capacitor-verisoul
Tutorial
@capgo/capacitor-verisoul

Verisoul

Collect Verisoul native fraud-prevention sessions from Capacitor apps on iOS and Android

Guide

Tutorial on Verisoul

Test on device

Download the Capgo app, then scan the QR code.

Verisoul plugin preview QR code

Using @capgo/capacitor-verisoul

@capgo/capacitor-verisoul connects Capacitor apps to Verisoul native fraud-prevention sessions on iOS and Android.

Install

npm install @capgo/capacitor-verisoul
npx cap sync

What This Plugin Exposes

  • configure - Initializes the native Verisoul SDK with your environment and project ID.
  • getSessionId - Returns the current Verisoul session ID for backend risk assessment.
  • reinitialize - Starts a fresh Verisoul session after account context changes.
  • recordTouchEvent - Sends Android touch events to Verisoul touch-signal collection.

Example Usage

import { Verisoul } from '@capgo/capacitor-verisoul';

await Verisoul.configure({
  environment: 'prod',
  projectId: 'YOUR_PROJECT_ID',
});

const { sessionId } = await Verisoul.getSessionId();

await fetch('/api/risk/verisoul', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ sessionId }),
});

Reset Sessions

Call reinitialize() when a user logs out or switches accounts:

await Verisoul.reinitialize();

Full Reference

Keep going from Using @capgo/capacitor-verisoul

If you are using Using @capgo/capacitor-verisoul to add fraud-prevention signals, connect it with @capgo/capacitor-verisoul for the implementation detail, Getting Started for install steps, iOS setup for App Attest notes, Android setup for Gradle setup, and Capgo Security for the broader security workflow.