dynamic and revalidate

This commit is contained in:
peintnermax
2024-08-13 15:00:36 +02:00
parent 7f51525c5b
commit d9d82d6657
5 changed files with 6 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
import { getBrandingSettings, getSession, sessionService } from "@/lib/zitadel";
import { getBrandingSettings, sessionService } from "@/lib/zitadel";
import Alert, { AlertType } from "@/ui/Alert";
import DynamicTheme from "@/ui/DynamicTheme";
import RegisterPasskey from "@/ui/RegisterPasskey";

View File

@@ -1,7 +1,6 @@
import {
getBrandingSettings,
getLoginSettings,
getSession,
sessionService,
} from "@/lib/zitadel";
import Alert from "@/ui/Alert";

View File

@@ -7,10 +7,8 @@ import { getSessionCookieById, loadMostRecentSession } from "@zitadel/next";
export default async function Page({
searchParams,
params,
}: {
searchParams: Record<string | number | symbol, string | undefined>;
params: Record<string | number | symbol, string | undefined>;
}) {
const { loginName, authRequestId, sessionId, organization } = searchParams;

View File

@@ -4,16 +4,8 @@ import VerifyEmailForm from "@/ui/VerifyEmailForm";
import { ExclamationTriangleIcon } from "@heroicons/react/24/outline";
export default async function Page({ searchParams }: { searchParams: any }) {
const {
userId,
sessionId,
code,
submit,
organization,
authRequestId,
loginname,
passwordset,
} = searchParams;
const { userId, sessionId, code, submit, organization, authRequestId } =
searchParams;
const branding = await getBrandingSettings(organization);

View File

@@ -1,3 +1,6 @@
export const dynamic = "force-dynamic";
export const revalidate = false;
import {
createCallback,
getActiveIdentityProviders,