Salesforce

Update a user's aiWARE token

« Go Back
Information
Update a user's aiWARE token
000004575
Public
Product Selection
aiWare - aiWare
Article Details

When initializing the SDK with the window.aiware.init function, you can pass the current user's aiWARE token to the SDK as theĀ authToken parameter:

window.aiware.init(
 {
  baseUrl: '<your-base-url>', 
  applicationId: '<your-application-id>', 
  authToken: '<user-token-value>' 
 }, 
 () => { 
  // code run by callback function 
 } 
);

If the user's aiWARE token is refreshed so that the user's session doesn't expire, the following function updates the user's aiWARE token in the SDK:

window.aiware.auth.updateToken(newTokenValue);
Additional Technical Documentation Information
Properties
2/12/2024 7:23 PM
2/12/2024 9:39 PM
2/12/2024 9:39 PM
Documentation
Documentation
000004575
Translation Information
English

Powered by