Home > cloud189-sdk > CloudAuthClient > loginByQRCode
CloudAuthClient.loginByQRCode() method
QR code login with polling
Signature:
loginByQRCode(onQRReady: (qrUrl: string) => void, options?: QRLoginOptions): Promise<TokenSession>;
Parameters
Parameter | Type | Description |
|---|---|---|
onQRReady | (qrUrl: string) => void | callback invoked with QR code URL for display |
options | (Optional) polling interval and timeout |
Promise<TokenSession>
token session