pez
pez4w ago

Unable to access identity from ctx.auth.getUserIdentity in HTTP action

Hi team, I'm trying to secure my image upload HTTP action and currently call the action via a hook. I'm using Clerk for auth and was able to confirm that calling useAuth() then awaiting the getToken function returns a JWT token. When I pass this token in as an Authorization header to my call to my HTTP action and then call ctx.auth.getUserIdentity() within the action, I keep seeing null. Any ideas what may be going on here? Thanks!
2 Replies
Convex Bot
Convex Bot4w ago
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!

Did you find this page helpful?