Help Center/ Meeting/ Client SDK Reference/ Electron SDK/ APIs/ Login Management Objects/ Subscribing to Login Error Notifications
Updated on 2023-03-23 GMT+08:00

Subscribing to Login Error Notifications

Function

A notification is sent when login fails.

Function Prototype

setOnLoginErrorNotifyCB(onLoginErrorNotify: (ret: SDKERR, reason: string) => void): voidsetOnLoginErrorNotifyCB(onLoginErrorNotify: (ret: SDKERR, reason: string) => void): void

Request Parameters

Table 1 Input parameter description
Parameter Mandatory Type Description
onLoginErrorNotify Y (ret: SDKERR, reason: string) => void Notification sent when login fails.

Return Values

void

Notification Method Parameters

(ret: SDKERR, reason: string) => void

Table 2 Input parameter description
Parameter Type Description
ret For details about SDKERR, see Error Code Reference. Error code.
reason string Error description.