<SignedIn> component allows you to show content only when the user is signed in.]]
Props
ReactNode
The content to show when the user is signed in.
Examples
<SignedOut> component to show different content based on the user’s authentication status.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
<SignedIn> component allows you to show content only when the user is signed in.]]
import { SignedIn } from "@kobbleio/next/client";
export default function Home() {
return (
<SignedIn>
<span>Your're authenticated</span>
</SignedIn>
);
}
<SignedOut> component to show different content based on the user’s authentication status.
import { SignedIn, SignedOut } from "@kobbleio/next/client";
export default function Home() {
return (
<>
<SignedIn>
<span>Your're authenticated</span>
</SignedIn>
<SignedOut>
<span>Your're not authenticated</span>
</SignedOut>
</>
);
}