Skip to main content
Version: Next

🔐 Inline Authentication

This page demonstrates how to use inline authentication for protected content.

Basic Protected Content​

When you're not signed in, you'll see a login form instead of this content:

Checking authentication...

Another Protected Section​

Each AuthenticatedOnly block can protect different content:

Checking authentication...

Usage​

Simply wrap any content you want to protect:

<AuthenticatedOnly>Your protected content here</AuthenticatedOnly>

Features​

  • ✅ Inline login form appears directly where needed
  • ✅ Sign up capability for new users
  • ✅ No page redirects - login happens in place
  • ✅ Error handling with clear messages
  • ✅ Automatic content reveal after successful login

The login form appears exactly where the protected content should be, making the user experience seamless!