Customization
Third-Party login
window.chatWidgetApi.thirdDIDLogin(address, thirdSignFunc, callBack)Method Name
Description
Parameters
Return Values
thirdDIDLogin(address, thirdSignFunc, callback) {
// Use address to call the the API and retrieve the corresponding DID.
const sign = await thirdSignFunc({message});
// Call didLogin(sign, ...otherParams) to perform the login.
// Upon successful login, call callback();
}Visibility
window.chatWidgetApi.showWidget(isShow)Method Name
Description
Parameters
Return Values
Last updated