convexAuth , nextJS google auth getting 404:not found error while click on the signIn
hey @Michal Srb , i am trying to integrate google auth in convex but it's throwing error of 404 not found
Things verified by me :
1. middleware is in root folder
2. Im using alpha version of convex auth
6 Replies
What does your middleware.ts look like?
I was getting a 404 as well using github and it was such a silly mistake on my part. I misspelled middleware.ts
here
verified this one too
spelling is correct
msg'd you.
bump
any clue ? I verified the docs but none of the things are working for me
Based on those logs it looks like the middleware isn't proxying requests to
/api/auth
to Convex. I'd try adding logging in the implementation of the middleware (either modify your node modules, delete the .next
directory, and rebuild, or copy out enough of the implementation into your own middleware.ts
file)
So something like
You should also be able to see what requests are being made by your browser in the "Network" tab of dev tools -- in my working example, I have a request to localhost:3000/api/auth
that triggers both of those log lines