cloud189-sdkcloud189-sdk
  • 介绍
  • 快速上手
  • 更新日志
API
GitHub
  • 介绍
  • 快速上手
  • 更新日志
API
GitHub

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

QRLoginOptions

(Optional) polling interval and timeout

**Returns:**

Promise<TokenSession>

token session

Edit this page