Two-device approvals (channels)
Use channels when one device drives the UI and another device approves.
Channel setup
Create a channel
import { RevibaseProvider } from "@revibase/lite";
const provider = new RevibaseProvider();
const { channelId, url } = await provider.createChannel();
// Show `url` as a QR code or deep link.Use the channel
import { signIn, transferTokens } from "@revibase/lite";
const { user } = await signIn(provider, { channelId });
const { txSig } = await transferTokens(
provider,
{ amount: 1_000_000n, destination: "DESTINATION_WALLET_ADDRESS", signer: user },
{ channelId },
);Track status
Reconnect / close
Last updated