[Solved] Sending auth info breaks ws connection to Convex
When I configure ConvexProviderWithAuth, and it sends JWT to the ws channel (wss://my-tenant.convex.cloud/api/1.10.0/sync), it gets a response:
*
{"type":"Authenticate","baseVersion":0,"tokenType":"User","value":{"name":"REDACTED","email":"REDACTED@gmail.com","picture":"https://avatars.githubusercontent.com/u/REDACTED?v=4","sub":"kh74hmtwhk1q4py9mwygh0r3fd6nbney","iat":1710630073,"exp":1713222073,"jti":"a7e096a9-0a84-4cd9-9dd6-e42db6cc011e"}}*
{"type":"FatalError","error":"Received Invalid JSON on websocket: invalid type: map, expected a string"}As I understand, Convex did not accept the user info. I don't really know what should I change here, maybe send raw JWT directly?
Here are the files:
