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.
| Property | Type | Description |
|---|---|---|
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. |
user | MonoCloudUser | The authenticated user resolved from the current session. |
Promise<JSX.Element> | JSX.Element