Connect With Dexter
Let someone use their Dexter Wallet from your app. Connect opens the passkey flow and returns the wallet with its matching account session. Your app can show the connected wallet and request owner-approved operations through the Vault SDK.
For account access alone, start with Sign In With Dexter. The Connect overview explains the integration choices.
Install
Use a React 18 or newer application served over HTTPS. The owner needs a Dexter Wallet.
Connect the Owner
This client component displays the wallet's receive address after connection. Its session stays in memory for the example; use your app's session adapter to preserve sign-in across reloads.
Render <ConnectWallet /> in your page. Choose Connect Dexter, complete the passkey prompt, and return to the app. The connected wallet appears after verification. Cancelling leaves the connection closed. Use another Dexter Wallet starts a fresh ceremony; Disconnect Dexter clears this connection while keeping the device passkey available for later use.
Obtain the Owner Signer
Pass the vault returned by dx.connect() to createPasskeySigner when preparing a Vault operation:
Creating the signer prepares the integration. A call to its signOperation method opens the owner approval for the specific Vault message. Use the Vault SDK's message and instruction builders to construct that operation and submit its transaction.
The activeWallet hook field supplies display metadata. Use the full connection result for the signer. For a browser wallet exposing signTransaction, follow the separate browser payment guide.
Check Your Connection
Connect, switch to another wallet, and disconnect. The displayed address and enabled wallet actions should follow the active identity. While the SDK reports checking, keep those actions disabled. Gate private account data separately with accountContentVisible; the API reference describes the permission fields.
Last Updated: