Sign in

Handler Type: ProtectedAppServerComponent

ProtectedAppServerComponent = (props: ProtectedAppServerComponentProps) => Promise<JSX.Element> | JSX.Element

App Router Server Component wrapped by protectPage().

This component is only executed after authentication (and optional authorization) succeeds. The authenticated user is injected into the component props automatically.

Props

PropertyTypeDescription
params?Record<string, string | string[]>Dynamic route parameters provided by the App Router.
searchParams?Record<string, string | string[] | undefined>URL search parameters provided by the App Router.
userMonoCloudUserThe authenticated user resolved from the current session.

Returns

Promise<JSX.Element> | JSX.Element

© 2024 MonoCloud. All rights reserved.