Getting "No auth provider found matching the given token" with Convex Password Auth
I'm running basic Svelte Kit + Convex Dev locally, I have configured environment variables in my convex dev deployment and I'm even getting what seems to be a valid JWT token out of signIn action
Since I'm not using Next and Svelte doesn't have a more automatic token store/retrieve/refresh mechanism yet, I set up the fetchTokens function as instructed in the site (and even though it isn't as automatic, it still seems pretty straightforward to configure, props for gud API design);
However, with all that when the API calls it's Authenticate passing the token I got from login, I get a "No auth provider found matching the given token" error and then the websocket literally dies and stops retrying and the refresh token api call never resolves or rejects
Anyone have any light to shed?





17 Replies
For added context, I'm running the Convex Backend on Docker; If I remove these lines and let npx convex dev spin up it's own standalone server, then it works for the most part, except when renewing tokens that have expired (the signIn action for renewing never resolves or rejects and the ws connection dies)

what does ur signin action function look like?
It's imported from Convex Auth

you need to specify the provider with the actions
react has helper functions
yes it works for logging in, it gives me a JWT token and it seems valid, but then when it fails to authenticate the token it generated

thats weird
this behavior occurs when using self-hosted on Docker

lemme check on my codebase, i need to see the types
ye am also on self hosted docker
the Authentication in the deployment seems right, the issuer looks right too
bro u need to send the provider

set provider to
"password"

the provider is being sent, the login is being made, but it fails to authenticate the token it generated
hmm
I found the code that throws this error message, it should pass

ig wait for a dev to respond, convex auth has always been a bit iffy w/password flow, i recommend either using clerk or better auth, convex team is working on an official better auth integration current one is either maintained by better auth / community idk