Manage user information on callback(new UnauthorizedError("You do not have access"), user, context)

Hi, I am ussing a rule that returns this.

But I want to use that user information and that context with the error.
Example. I want to show “You do not have access Name of that user or email
I am using this rule on a React project and on NodeJs and Express project.

Hey there!

That’s the thing you wanna use, so basically user object properties in Rules:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.