Back-end Script
On your server, you should create an end point (called by your front-end) which will create a session for a user. To create that user session you will need to call the Mindset SDK Users API (see the SDK Users API documentation for more details). You must provide anexternalId
or a userEmail
parameter so that the Mindset system can identify the user.
You can learn more about the user email address : User Handling
{authToken}
which has to be used in the Front-end script (a getAuthToken()
method passed to the mindset.init()
).
See the doc for more details about Authentication flow.
Below an example of an EXPRESS API script
Parameters required for your configuration
Parameter | Description |
---|---|
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 (CONFIGURE > API Management > Generate key). |