1. JS SDK Reference

Credentials for authentication

For data security and privacy reasons, all requests made using Sitecore Discover JS SDK for React require authentication.

While authenticating, the credentials attributes added to the WidgetsProvider component depend on how your subdomain is set up. You can find their values for the following in the Customer Engagement Console (CEC).

The following table lists the attributes needed for authentication:

AttributeTypeDescription
envstringEnvironment from where the data should be gathered. Typical values include staging, uat, and prod.
customerKeystringCustomer ID provided by Discover.
apiDomainstringAPI host provided by Discover. Required when subdomain is set up with Discover.
apiKeystringAPI key generated by Discover. Required when subdomain is not set up with Discover.
useTokenBooleanFalse when subdomain is set up with Discover.

Default is true.
If you have suggestions for improving this article, let us know!