No auth provider found
since around yesterday, my already working auth setup suddenly broke and now I can’t use auth at all. The setup is custom JWT using better auth JWKS
seems like there are no more requests to the JWKS endpoint at all
20 Replies
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!


Are you using
@erquhart/convex-better-auth?
I got it working by changing from localhost to a dev proxy
But no, I'm not using
convex-better-auth
But either way the auth did suddenly stop working which is weird
I still feel there might be some bug in convex or something, but at least everything's working for now...
Better auth is hosted on a seperate SQL DB, hence using it through custom JWT providerah, gotcha
If you're interested, the Convex integration lets you run everything through your Convex deployment
Can you please elaborate? Facing the exact same issue
eventually realised that using cloud dev means convex can't talk to your jwks endpoint on localhost
so i setup a cloudflare tunnel on a public fixed domain,
e.g
local-dev-tunnel.mydomain.dev
-> my local machine
and then convex cloud was able to talk to my JWKS on local devThis is what my
auth.config.js
looks like -
are you using convex local dev or cloud dev?
Convex cloud dev
Then yeah, the cloud dev server can't talk to your machine on localhost
aka the remote server tries to contact
http://localhost:3000/api/auth/jwks
but it won't be able toLooks like I'll have to replace all of these. Should I also replace in better auth client?
this is the way i'm doing it
and
NEXT_PUBLIC_BETTER_AUTH_URL=https://local-dev-tunnel.<redacted>.dev
i would change the baseURL and issuer and jwks to use a env variable
since it will also be easier to deploy when you get to productionCan you please also share the hook you are passing to ConvexProviderWithAuth
it probably isn't the best solution (i'm no self-proclaimed react expert) , and you can probably drop the useInternalAuth context unless you need to similarly use httpActions
Thank you so much! I'll post my own setup once I get it working.
no problem!
should work well with any client side react app (i'm using react-router in declarative mode)
if you are using something like nextjs, you can also optionally add a initial token from SSR