nakajimayoshi
nakajimayoshi2mo ago

Auth on next.js app

why does getting this route return a 404? I went through the setup guide for github auth on convex auth docs.
~ dev$ curl http://127.0.0.1:3210
This Convex deployment is running. See https://docs.convex.dev/.%
~ dev$ curl http://127.0.0.1:3210/api/auth/signin/github
~ dev$
~ dev$ curl http://127.0.0.1:3210
This Convex deployment is running. See https://docs.convex.dev/.%
~ dev$ curl http://127.0.0.1:3210/api/auth/signin/github
~ dev$
convex/auth.ts
import { convexAuth } from "@convex-dev/auth/server";
import GitHub from "@auth/core/providers/github";
import { httpAction } from "./_generated/server";


export const { auth, signIn, signOut, store, isAuthenticated } = convexAuth({
providers: [GitHub],
});
import { convexAuth } from "@convex-dev/auth/server";
import GitHub from "@auth/core/providers/github";
import { httpAction } from "./_generated/server";


export const { auth, signIn, signOut, store, isAuthenticated } = convexAuth({
providers: [GitHub],
});
No description
3 Replies
Sara
Sara2mo ago
because it doesn't exist on localhost, it exists on your Convex Deployment url, and replace the .cloud with .site
nakajimayoshi
nakajimayoshiOP5w ago
@Sara Restarted using nextjs instead of vue, I think just something is wrong with the integration with vue rn same local url works just fine using nextjs
Sara
Sara5w ago
Ah! I'm so sorry about that

Did you find this page helpful?