mrsabzM
Convex Community4mo ago
3 replies
mrsabz

Better-auth + convex 404

I integrated better auth with convex and exposed better-auth routes via httpRouter for api calls. Even through they are visible in convex functions dashboard, I'm still getting 404 and I do not understand what the issue is(Convex url in frontend is correct)
import { httpRouter } from "convex/server";
import { authComponent, createAuth } from "./auth";

const http = httpRouter();

authComponent.registerRoutes(http, createAuth, { cors: true });

export default http;
image.png
Was this page helpful?