{pageTitle(page.url.pathname)} | Lean 101 Admin Panel

Admin Area

{pageTitle(page.url.pathname)}

{#if !$sessionHydrated}
A
Checking saved session Restoring admin access
{:else if $adminSession}
{initials($adminSession.name)}
{$adminSession.name} {$adminSession.email}
{:else}
A
Admin sign-in required Use `/admin` to authenticate
{/if}
{#if isProtectedRoute && (!$sessionHydrated || isRestoringSession)}

Checking Session

Restoring the Lean 101 admin workspace.

Refreshing the current route with the saved operator session before prompting for sign-in.

{:else if isProtectedRoute && !$adminSession}

Restricted

Sign in through the Lean 101 Admin Panel to continue.

Client access controls are only available inside the separate admin workspace.

Go to admin sign-in
{:else} {@render children()} {/if}