pezP
Convex Community11mo ago
2 replies
pez

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!
Was this page helpful?