Bug in httpAction, Authorization Bearer not working. Identity is null
Hello, im having the same trouble with auth through an http action
On the documentation https://docs.convex.dev/auth/functions-auth#http-actions
it says that if I put an Authorization token then ctx.auth.getUserIndentity should return the user, however this is broken.
Seems like it get stripped because its not even visible in the preflight
I'm using clerk as auth provider if that helps.
Auth in Functions | Convex Developer Hub
_If you're using Convex Auth, see the
2 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
Full explanation here: https://discord.com/channels/1019350475847499849/1272214532873392128