How does hardening work?

How can I enable hardening?
Copy the signing secret from the Stigg app
In the Stigg app, navigate to the Account Settings screen. Under the Environments section, click on the button that appears under the Client-side Security column of the relevant environment - if hardening is not enabled it will appear as “Not enforced”. Copy the signing secret.The signing secret is specific per environment.
Generate a customer token in your backend application
In your backend application, identify the handler that returns the user identity to the client side. Generate a customer token using the provided singing secret, for example:Provide the customer token in your frontend application
In your frontend application pass thecustomerToken
to the Stigg provider.
Enable client-side security enforcement in the Stigg app
In the Stigg app, navigate to the Account Settings screen. Under the Environments section, click on the button that appears under the “Client-side security” column of the relevant environment - when hardening is not enabled it will appear as “Not enforced”. Set the “Client-side security status” to “Enforced”. Save the changes. Confirm the change.It’s recommended to enable client-side security in each environment in a similar manner to deployment of new functionality in your application, for example: start with development, then enable in staging, and only lastly enable in production.
If client-side security is enforced and the above mentioned code changes have not been made, access to Stigg from the frontend application will not work.
Read-only access
Stigg allows you to easily add checkout experiences in your application using an embeddable checkout widget. In this flow, the Stigg frontend SDKs can initiate a checkout session directly against the Stigg backend; thus, saving you the need to create a dedicated “checkout” endpoint in your backend. Consequently, this means that the Stigg frontend SDKs can perform write operations in the Stigg platform. When stricter access is required, it’s possible to limit the frontend SDKs to read-only access by adding aro:
prefix to the generated customer token.
The [Stigg Checkout Widget}(checkout) will not work when read-only permissions are used.