Web Dev Cody
Web Dev Cody4mo ago

Convex Auth Question

Any clue if there is a way to change this oauth screen in google? right now it just shows the convex api url which is a bit off putting for users.
No description
6 Replies
jamwt
jamwt4mo ago
lol. I saw that on your project. yeah, we'll need to fix that. could probably use domain aliases + auth or something to help here. dunno what @sshader thinks
sshader
sshader4mo ago
Yeah I think the current best way to deal with this is to use a Custom Domain (https://docs.convex.dev/production/hosting/custom) for .convex.site -- I think the name gets pulled from the redicrect URIs set in your google oauth app
Custom Domains & Hosting | Convex Developer Hub
Serve requests from any domains and host your frontend on any static hosting provider, such as GitHub.
Web Dev Cody
Web Dev CodyOP4mo ago
nice, I'll check that out
Sronds
Sronds3w ago
@Web Dev Cody @sshader i've tried to setup a custom domain but unfortunately google auth is not picking it up and only using original convex one. Any updates on this? looking at the code in signIn.js (@convex-dev/auth/dist/server/implmenetation/signIn.js) y'all are using
const redirect = new URL(requireEnv("CONVEX_SITE_URL") + `/api/auth/signin/${provider.id}`);
const redirect = new URL(requireEnv("CONVEX_SITE_URL") + `/api/auth/signin/${provider.id}`);
which is then used here
const result = await openAuthSessionAsync(redirect!.toString(), redirectTo)
const result = await openAuthSessionAsync(redirect!.toString(), redirectTo)
Indy
Indy3w ago
Hi this is a known limitation of Convex Auth, it's on our list. There is a way to workaround this for Google Auth: https://discord.com/channels/1019350475847499849/1019350478817079338/1314744170254172252
Sronds
Sronds3w ago
Thanks @Indy, appreciate you ❤️

Did you find this page helpful?