Unable to get Roles or Custom Claims using ctx.auth.getUserIdentity()
I'm trying to attach convex and Authrizer.dev. I was able to integrate both of these but fo successfully come reason, I was not able to see the roles in the userIdentify.
2 Replies
Hey @Akhil, we only pass valid JWT token fields to getUserIdentity at the moment.
See https://docs.convex.dev/auth/functions-auth#user-identity-fields
You could potentially use one of those to add in your information (if authorizer allows this), or use webhooks to sync authorizer to Convex (like here: https://www.convex.dev/templates/clerk), if authorizer supports them.
First time I'm seeing this auth solution, let us know how it goes!
Auth in Functions | Convex Developer Hub
Within a Convex function, you can access information
Custom claims are now supported with
convex@1.14.0