11
115h ago

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;
import { httpRouter } from "convex/server";
import { authComponent, createAuth } from "./auth";

const http = httpRouter();

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

export default http;
No description
1 Reply
11
11OP5h ago
No description

Did you find this page helpful?