1. Disable Clerk Bot Detection on staging
- Clerk does not have a granular way to allowlist User-Agent
- The best way to resolve this is to disable Clerk Bot Detection on staging
2. Create a simple API to return a session token to Stably
Clerk enables services to bypass bot detection by attaching a session token to the request. You can read more about it here. If you want to test on production or keep Clerk bot detection on for staging, you can implement an API that returns a session token. The API is necessary because session tokens are short-lived and require your Clerk tokens to generate, therefore only you can generate it. Here is an example of how you can implement this API: