Returns the user if they are logged in and their role is at least minRole
in the hierarchy (e.g. "supervisor" allows supervisor, admin, superadmin).
Otherwise redirects — to /unauthorized by default, or options.redirectTo.
Display gating only: this is the route-level companion to the client
useMinRole hook. The server (tRPC) remains the real authorization boundary.
Returns the user if they are logged in and their role is at least
minRolein the hierarchy (e.g. "supervisor" allows supervisor, admin, superadmin). Otherwise redirects — to /unauthorized by default, oroptions.redirectTo.Display gating only: this is the route-level companion to the client
useMinRolehook. The server (tRPC) remains the real authorization boundary.