Next.js: Clerk NoAuthProvider Error
Upon cloning https://github.com/get-convex/convex-nextjs-app-router-demo I get the error when attempting sign-in with my Clerk credentials in
.env.local
and in my convex env settings on localhost:3000 after running npm run dev
my .env.local is as follows:
GitHub
GitHub - get-convex/convex-nextjs-app-router-demo: Demo showing a N...
Demo showing a Next.js App Router app powered by Convex backend - GitHub - get-convex/convex-nextjs-app-router-demo: Demo showing a Next.js App Router app powered by Convex backend
12 Replies
What does your
convex/auth.config.js
look like?it's unchanged from the starter code
and my clerk JWT is called "convex"
just confirmed the claims in clerk!
I can't think of anything, all looks reasonable! I'll clone and see if I can repro.
thanks so much (and wow such speedy replies ❤️ ). to clarify the name of my application in Clerk is not convex, but I'm assuming that's irrelevant
I'm not hitting this, my .env.local looks like
thanks for the attempt to repro!
I did hit a schema issue a moment later though! I wasn't getting a username and had to make it optional in the schema
might be unquoted jwt in my env 😮💨 we'll see
In my Convex dashboard my environment variables look like this

sounds like the Clerk settings match, just in case here's mine

ohh i feel silly - i had corrected my var from JWKS Endpoint -> Issuer when rereading the instructions in
.env.local
but not in the convex vars
it works now 🥳 🥳🎉