Skip to Content
Client SDKWeb / ReactOverview

Web / React SDK

The @getpassage/web-react SDK brings Passage Connect to web applications. It displays a QR code that launches the Passage App Clip on the user’s phone, then monitors the link status via WebSocket and fires callbacks on completion or failure.

How it works

  1. Create a link — Your backend calls POST /v1/links and receives a claimCode
  2. Show QR code — Pass the claim code to openAppClip(). The SDK renders a modal with a QR code pointing to the App Clip
  3. User scans — The user scans the QR code on their phone, which opens the App Clip and starts the automation
  4. Receive result — The SDK monitors link status over WebSocket and fires onConnectionComplete or onConnectionError

When to use

Use the Web / React SDK when your users interact with your app in a web browser and need to complete account linking on their phone. The QR code bridges the gap between desktop and mobile.

Next steps

  • Quickstart — Install the SDK and connect your first account
  • API Reference — Full type and function documentation
  • Links — Understand the link lifecycle
Last updated on