11 Replies
In middleware this is true:
and when I'm redirected to authenticated page I get an error "Authentication required" bacause I call
authQuery
Were you able to find a fix for this issue? I am facing them same issue.
how do you call the authQuery? if its from serverside you should pass token as the 3rd param
Unsure, how he is doing but I am using fetchQuery. I am doing something like this:
try
Ah, nice! I am getting an error now. Progress!
Server Error: Uncaught Error: Missing environment variable
JWKS
","trace":"Uncaught Error: Missing environment variable `JWKS
Gotta figure this out, thanks!yeap make sure to set the auth env vars or run the automated script and it should work 👍
automated script? Any docs you can point me to?
here: https://labs.convex.dev/auth/setup#run-the-initialization-command
or follow this for manual setup: https://labs.convex.dev/auth/setup/manual#configure-site_url
Set Up Convex Auth - Convex Auth
Authentication library for your Convex backend
Manual Setup - Convex Auth
Authentication library for your Convex backend
Thanks, Oren!
Use this workaround:
reactStrictMode: false,
Add this to your nextjs.config.mjs file