Skip to main content
By the end of this guide your page renders different content depending on whether the visitor is signed in and which roles they hold. The 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 how authUser 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.

Next steps