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
- Create a link — Your backend calls
POST /v1/linksand receives aclaimCode - Show QR code — Pass the claim code to
openAppClip(). The SDK renders a modal with a QR code pointing to the App Clip - User scans — The user scans the QR code on their phone, which opens the App Clip and starts the automation
- Receive result — The SDK monitors link status over WebSocket and fires
onConnectionCompleteoronConnectionError
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