ngrok for webhooks

I tried to use ngrok for webhooks in development to achieve a static domain. Unfortunately upon logging in with OAuth 2.0 (google/github) my Better Auth always redirects me to localhost:3000. Is there any fix for this or possible workarounds?
2 Replies
bekacru
bekacru2w ago
Make sure BETTER_AUTH_URL is set to your prod url in your env
palicz
paliczOP2w ago
Alright, but i'm running ngrok with concurrently, so I would like to be able to use localhost:3000 and the ngrok url as well.

Did you find this page helpful?