Overview
A JWT is used to identify the user when the widget loads. The product secret from Reditus is critical for signing this token and should never be exposed in front-end code. Instead, you will generate the token on your server and pass it to your client.Examples
Parameters
Usage
- Generate this token on your backend using the product secret and product ID.
- Send the token to your frontend (e.g., via an API response).
- Use the token in the auth_token parameter of the
gr("loadReferralWidget", ...)(detailed in Loading the Widget).