tanish
tanish2mo ago

Hey i a not able to use my url call back in convex

when i use my convex url i am able to use github and google oauth but redirecting me to local host instead when i add my domain it is not able to login through google and github.
2 Replies
Convex Bot
Convex Bot2mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
sshader
sshader2mo ago
Can you describe more of what you're seeing? Is this with Convex Auth? If you're seeing a Google / Github sign in page, but then getting redirected to localhost when your frontend is on some other domain, I'd check the SITE_URL environment variable in Convex -- it dictates the default redirect URL. For dev, this is usually something like http://localhost:3000, but for prod it's usually something like https://my-cool-site.vercel-app (or wherever you're hosting your frontend). I'd also check that your Github + Google OAuth apps list the same URL -- in Github it's under "Homepage URL" and in Google it's under "Authorized JavaScript origins"

Did you find this page helpful?