Validate convex auth from standalone hono server.
It lives in the same repo as our convex backend, and the rest of our stack.
I'd like to make calls with it from our frontend, but want those calls to only be made from an authed user.
I know I can roll a simple jwt solution. But I thought, I could perhaps pass the convexAuthToken as a header. Then from the hono server, can I import convex, and validate that user in a hono middleware?
Let me know if this needs more explaination. And if it is possible with a quick guide.
Attached a screenshot of how you can do this with say Fastify and Clerk. I don't think it needs a custom plugin. Just a function that can validate the passed in token. And can be reused if we need to call convex from the hono server. And we don't even need the whole user obj. Knowing that the user has a valid session, and perhaps their userId would suffice.
Thank you.
cc: @Michal Srb cc: @Mordsith

