7_Ankit
7_Ankit4d ago

Github Oauth integration error

I'm trying to use Convex Oauth in my project, & followed the exact steps as mentioned in the docs, but i don't know why, i keep getting an error. I have added all the environment variables, URLs and Oauth app correctly in github as mentioned in the docs. Also whenever i click on the buttton for login to github i get this response in my termnal: 'POST /api/auth 404 in 25ms'. Please help me!
2 Replies
Convex Bot
Convex Bot4d ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
sshader
sshader3d ago
The 404 sounds like your Next.js middleware isn't being hit / isn't handling the request properly. Can you share that file + check that it's in the right place in your project (https://nextjs.org/docs/app/building-your-application/routing/middleware#convention) ?
Routing: Middleware | Next.js
Learn how to use Middleware to run code before a request is completed.

Did you find this page helpful?