SDK 2.0
Back end
Embedding an agent, Back-end script
Back-end Script
See the doc for more details about Authentication flow.
On your server, you should create an end point which will get the user email as request from your front end side, and which will query an AUTH TOKEN from the Mindset server. This AUTH TOKEN will be injected in the FE script.
Below an example of an EXPRESS API script
Paramaters required for your configuration
MINDSET-API-HOST
This URL is provided by the Mindset team.YOUR-MINDSET-API-KEY
This API KEY can be generated in your Mindset App Admin portal.