Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Performs SSO login.

Look at CTLive Agent Login and Logout for more information

Parameters:

Name

Mandatory

Type

Description

jwt_token

NO

STRING

A json web token to perform authentication.

enableVideo

NO

BOOLEAN

Flag to enable video operations for the agent

Returns:

Type

Description

JS Promise

A Javascript Promise that returns an object with the result of the login request.

Example:

LIVECAHT.login()
.then(function (data) {
  console.log("[CTLIVE WIDGET] Login", data);
})
.catch(function () {
  console.log("[CTLIVE WIDGET] [ERROR] Login");
});
  • No labels