Test the production-ready API key authentication flow for widget token generation
First, you need to generate an API key for your organization. This is done through the admin API:
Now use the API key to generate a widget token (this simulates what your backend would do):
Finally, use the widget token to load the widget:
For quick testing, you can use your admin JWT token directly:
Here's how your backend would implement this flow: