WebSocket Port
I tried to connect Convex in expo with Clerk and expo-route, after I put auth.config.ts I got websocket error.
18 Replies
Make sure the file is
auth.config.js
as in the docs (not .ts
)I tried at first but I having these error.
This is my line of codes
I fixed this, by removing the Constants import.
but I'm still having the websocket issue.
ios?
android
ah. which browser?
wait, sorry. expo
gotcha
yeah, possible this is a real issue. @sshader do you know if we've put much time into the android side of things? I know we've checked out expo on ios quite a bit. dunno if it's possible the websocket lib on expo android is unhappy with something we're doing
@Kıte What's the error you're seeing now, is it still "No auth provider found matching the given token?"
Constants.expoConfig.extra.convexclienturl
doesn't sound like the right value here, what do you have for this value now? it ought to be something like "https://big-caiman-52.clerk.accounts.dev/"
I done that already, still getting the error.
What's the error you're getting now?
still getting this.
I'm using react-clerk as a provider
@Kıte sorry for the delay here, could you chevk how you configured this application in Clerk to see if it's using the Convex JWT template?
Its seems the websocket is gone, after deleting convex jwt and creating a new one, But still can't log in, I'll try to figuring it out first.
This sounds frustrating. Do you know if using Convex without auth works? You might try deleting auth.config.js and removing the Clerk provider and ConvexClerkProvider and get things working without auth (just ConvexProvider) because if it really is a websocket issue auth shouldn't be involved.
If using Convex normally without auth works, then we know it's an auth issue and you could retrace the auth setup steps.
I can login using clerk only
I mean I can login with Plain Convex provider.
Seems like I already logged in but the
isAuthenticated
is still in false state.
You probably have this bug : https://github.com/a16z-infra/ai-town/issues/111#issuecomment-1852144767
GitHub
Failed to authenticate: "NoAuthProvider: No auth provider found mat...
I dont know how to fix it please help
during development I've run into an issue that was only resolved by clearing cookies & local storage then logging in again. some internal clerk inconsistency I think