Use this method to set the sessionData that you already obtained.
client.setSessionData({sessionToken:string, sessionId:string, expirationTime:integer});
To obtain the sessionData see the method generateSession.
Name | Type | Description |
---|---|---|
sessionToken | string | Session token to be set. |
sessionId | string | Session ID to be set. |
expirationTime | string | How long the SDK considers the session token valid, expressed in milliseconds. |
This method does not have any options.
This method does not return any values.
The following example sets the sessionData obtained through the generateSession:
client.generateSession().then(function(response){
client.setSessionData(response.data);
});