Using Convex with Hanko
I'm trying to get Convex to authenticate my mutations with Hanko but I'm getting an authentication error. Hanko issues JWT tokens which can be easily verified. Here's my current auth config:
I'm getting an authentication error from a mutation:
I guess my question now is: Is there something I'm missing? Or is there another way to configure Convex auth?
7 Replies
cc: @jamwt
can you paste the error you're getting?
Sure. Here:
Is there a way to bypass Convex's auth check and implement yours?
are you at the hackathon, @omzi ?
Yeah, Hanko's 😅
Is Convex holding any?
We were at CalHacks.
Have you set up your client? Which Convex docs are you following?
You can see more about why setAuth failed by looking at the websocket messages (called sync in the Network tab of the browser dev tools).
I haven’t heard of someone using Hanko JWTs with convex yet. One nuance is the JWT needs to be OpenID compliant, which is not as common as you’d hope.
Holler if you’re still working on it and want more help. Let us know how your client is being configured