Skip to main content
Version: 1.5.x

Security

You must enable secure authentication mode for your production apps; otherwise, unauthorized access to your users' inbox messages is possible.

userToken

The userToken is a token (JWT) generated for your users by your secure backend server using a secret private key generated from Engagespot console. This ensures secure authentication for your user's In-App inbox.

import { Engagespot } from '@engagespot/react-component';

<Engagespot
apiKey="ENGAGESPOT_API_KEY"
userId="unique-id-of-your-user"
userToken="Required if secure auth is enabled on your Engagespot app"
/>;

Read this to learn more about Authentication