feat: establish ZITADEL OIDC account portal foundation
This commit is contained in:
1 parent
4404849fc4
commit
40af500750
28 files changed
+898
-10
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
import { AccountShell } from "@/components/account-shell";
|
||||
import { requireIdentity } from "@/lib/identity";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export default async function ProtectedLayout({
|
||||
children
|
||||
}: {
|
||||
children: ReactNode;
|
||||
}) {
|
||||
const user = await requireIdentity();
|
||||
return <AccountShell user={user}>{children}</AccountShell>;
|
||||
}
|
||||
Reference in new issue
Block a user