I successfully connected Clerk to Retool with OAuth 2.0 from a Rest API resource with Authorization Code Grant, but the issue is that I can only connect to my Clerk production project, not my dev project. All the settings in Retool and my Clerk OAuth app are the exact same for both my prod and dev projects. For production, when I click Connect with OAuth, after I log in, it successfully redirects back to Retool. But for dev, it never redirects back to Retool, it only ever redirects back to the frontend url of my Clerk dev project.
Another related issue is that I can’t see the consent screen. If I set the prompt to Consent instead of Login even for the production project, it will redirect back to the frontend app URL instead of Retool.
Some background: I need to authenticate with Clerk so that users can send authenticated requests to my backend as themselves. Due to this, I do not want to check “Share credentials between users” option, and I’m using Authorization Code Grant instead of Client Credentials.
I followed all the steps in the docs here, would really appreciate any help solving this issue.