Developers

GenerateSession

generateSession

Usage

Use this method to create a sessionToken:

client.generateSession();
Note

You have to set up the session after you generate it.

Example

The following example will generate a session and set it up:

client.generateSession().then(function (response) {
  var sessionToken = response.sessionToken;
});