Skip to content

Unauthenticated

The Unauthenticated component is used to render content only when a user is not authenticated.

This component must be a child of the SupabaseApp component to work.

Props

This component does not accept any props.

Slots

PropertyDescription
authThe Supabase authentication client.
errorThe authentication error, if any.

Usage

<script lang="ts">
import { Unauthenticated } from "supasveltekit";
</script>
<Unauthenticated>
<h1>Only unauthenticated users can see this!</h1>
</Unauthenticated>