2 Replies
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).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.