diff --git a/docs/auth-kit/client/app/create-channel.md b/docs/auth-kit/client/app/create-channel.md index c637d08..6ce3724 100644 --- a/docs/auth-kit/client/app/create-channel.md +++ b/docs/auth-kit/client/app/create-channel.md @@ -11,6 +11,19 @@ const channel = await appClient.createChannel({ }); ``` +For desktop users, present the link as a popup that contains a QR code then wait for the status using [watchStatus](./watch-status.md). + +```ts +const url = channel.data.url; +const popup = window.open(url, '_blank', 'width=500,height=800'); +``` + +For mobile users, use `_top` instead of `_blank` to open the mobile app directly. +```ts +const url = channel.data.url; +const popup = window.open(url, '_top'); +``` + ## Parameters | Parameter | Type | Description | Required | Example |