mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 10:15:04 +00:00
dynamic and revalidate
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { getBrandingSettings, getSession, sessionService } from "@/lib/zitadel";
|
import { getBrandingSettings, sessionService } from "@/lib/zitadel";
|
||||||
import Alert, { AlertType } from "@/ui/Alert";
|
import Alert, { AlertType } from "@/ui/Alert";
|
||||||
import DynamicTheme from "@/ui/DynamicTheme";
|
import DynamicTheme from "@/ui/DynamicTheme";
|
||||||
import RegisterPasskey from "@/ui/RegisterPasskey";
|
import RegisterPasskey from "@/ui/RegisterPasskey";
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
getBrandingSettings,
|
getBrandingSettings,
|
||||||
getLoginSettings,
|
getLoginSettings,
|
||||||
getSession,
|
|
||||||
sessionService,
|
sessionService,
|
||||||
} from "@/lib/zitadel";
|
} from "@/lib/zitadel";
|
||||||
import Alert from "@/ui/Alert";
|
import Alert from "@/ui/Alert";
|
||||||
|
|||||||
@@ -7,10 +7,8 @@ import { getSessionCookieById, loadMostRecentSession } from "@zitadel/next";
|
|||||||
|
|
||||||
export default async function Page({
|
export default async function Page({
|
||||||
searchParams,
|
searchParams,
|
||||||
params,
|
|
||||||
}: {
|
}: {
|
||||||
searchParams: Record<string | number | symbol, string | undefined>;
|
searchParams: Record<string | number | symbol, string | undefined>;
|
||||||
params: Record<string | number | symbol, string | undefined>;
|
|
||||||
}) {
|
}) {
|
||||||
const { loginName, authRequestId, sessionId, organization } = searchParams;
|
const { loginName, authRequestId, sessionId, organization } = searchParams;
|
||||||
|
|
||||||
|
|||||||
@@ -4,16 +4,8 @@ import VerifyEmailForm from "@/ui/VerifyEmailForm";
|
|||||||
import { ExclamationTriangleIcon } from "@heroicons/react/24/outline";
|
import { ExclamationTriangleIcon } from "@heroicons/react/24/outline";
|
||||||
|
|
||||||
export default async function Page({ searchParams }: { searchParams: any }) {
|
export default async function Page({ searchParams }: { searchParams: any }) {
|
||||||
const {
|
const { userId, sessionId, code, submit, organization, authRequestId } =
|
||||||
userId,
|
searchParams;
|
||||||
sessionId,
|
|
||||||
code,
|
|
||||||
submit,
|
|
||||||
organization,
|
|
||||||
authRequestId,
|
|
||||||
loginname,
|
|
||||||
passwordset,
|
|
||||||
} = searchParams;
|
|
||||||
|
|
||||||
const branding = await getBrandingSettings(organization);
|
const branding = await getBrandingSettings(organization);
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
export const dynamic = "force-dynamic";
|
||||||
|
export const revalidate = false;
|
||||||
|
|
||||||
import {
|
import {
|
||||||
createCallback,
|
createCallback,
|
||||||
getActiveIdentityProviders,
|
getActiveIdentityProviders,
|
||||||
|
|||||||
Reference in New Issue
Block a user