Calling HTTP Actions with Convex Auth
How can we set the header for http requests made from the client when using Convex Auth? I did not see a function similar to getToken in clerk.
https://docs.convex.dev/functions/http-actions#authentication
HTTP Actions | Convex Developer Hub
HTTP actions allow you to build an HTTP API right in Convex!
2 Replies
It hasn't been implemented yet, working on it.
https://github.com/get-convex/convex-auth/issues/38
This has now been implemented via
useAuthToken
hook. Docs:
https://labs.convex.dev/auth/authz#authenticate-http-actionsAuthorization - Convex Auth
Authentication library for your Convex backend