From b53c35ec9ed2ab497df68bd62f92ff75c7d671de Mon Sep 17 00:00:00 2001 From: billy rennekamp Date: Tue, 27 May 2025 08:09:22 +0200 Subject: [PATCH] Update create-channel.md with popup/mobile instructions --- docs/auth-kit/client/app/create-channel.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 |