<SignedIn>
Overview
The <SignedIn>
component offers authentication checks as a cross-cutting concern. Any children components wrapped by a <SignedIn>
component will be rendered only if there's a User with an active Session signed in your application.
- Name
treatPendingAsSignedOut?
- Description
import { SignedIn } from '@clerk/tanstack-react-start'
import { createFileRoute } from '@tanstack/react-router'
export const Route = createFileRoute('/')({
component: Home,
})
function Home() {
return (
<div>
<SignedIn>
<p>You are signed in</p>
</SignedIn>
<p>Always visible</p>
</div>
)
}
Feedback
Last updated on