authUser capability returns the active end-user’s profile during page rendering, so you gate any block with no backend code. You will add a sign-in entry point, read the active profile, and use visible_if expressions to gate by auth state and by role.
Prerequisites
Steps
Troubleshooting
What you built
You wired a sign-in entry point, learned howauthUser returns the active profile (or null for anonymous visitors), and used visible_if to gate blocks by sign-in state and by role. Your page now renders different content for anonymous users, signed-in members, and admins — with no custom backend.