Intern
Intern10mo ago

How reactive is ctx.auth.getUserIdentity?

Hi guys, is UserIdentity fully reactive?
2 Replies
Michal Srb
Michal Srb10mo ago
ctx.auth.getUserIdentity returns the claims included in the JWT which the client is currently authenticated with. The Clerk and Auth0 integrations should be set up in a way that the JWT is resent when the user attributes change in Clerk / Auth0 (if this is not the case we'll look into it).
Intern
InternOP10mo ago
Okay, thanks. Just wanted to know if it was fully reactive as I was syncing all the user data to users. I move to using UserIdentity instead and store only the extra data such as stripeCustomerId in the db along with the clerk user id.

Did you find this page helpful?