ILYES DRAGOVICI
Convex Community4mo ago
24 replies
ILYES DRAGOVIC

OAuth works but redirects to Convex domain with “No matching routes found” instead of frontend

I’ve been setting up OAuth with @convex-dev/auth (Google + GitHub). The login flow does work — users are created in the Convex users table and show up in the dashboard.

The problem is after authentication: instead of redirecting back to my frontend app (running on http://localhost:3000 in dev), the browser gets stuck on the Convex backend domain (https://grandiose-meadowlark-398.convex.site) and shows only:
No matching routes found
The network tab shows errors like:
GET https://grandiose-meadowlark-398.convex.site/?code=14452581 404 (Not Found)
So Convex successfully authenticates the user but does not forward them back to my frontend app. I tried setting redirectTo in signIn and also experimented with SITE_URL, but I keep running into errors like:
Invalid redirectTo http://localhost:3000 for configured SITE_URL: https://grandiose-meadowlark-398.convex.site

In short:

Users are stored correctly in Convex.
After login, Convex leaves me on the backend domain with “No matching routes found.
It never redirects to my frontend app.

How should I configure this properly so Convex redirects back to my frontend instead of leaving the browser at .convex.site?
Thank you for your time, I would appreciate a help here
Was this page helpful?