diff --git a/README.md b/README.md index 54ecedc8f28..32794d3bce9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ZITADEL TypeScript with Turborepo and Changesets +# ZITADEL TypeScript with Turborepo This repository contains all TypeScript and JavaScript packages and applications you need to create your own ZITADEL Login UI. diff --git a/apps/login/src/lib/zitadel.ts b/apps/login/src/lib/zitadel.ts index 4f542f533b5..957749c1131 100644 --- a/apps/login/src/lib/zitadel.ts +++ b/apps/login/src/lib/zitadel.ts @@ -36,8 +36,10 @@ import { unstable_cache } from "next/cache"; import { PROVIDER_MAPPING } from "./idp"; const SESSION_LIFETIME_S = 3600; // TODO load from oidc settings -const CACHE_REVALIDATION_INTERVAL_IN_SECONDS = - Number(process.env.CACHE_REVALIDATION_INTERVAL_IN_SECONDS) ?? 3600; +const CACHE_REVALIDATION_INTERVAL_IN_SECONDS = process.env + .CACHE_REVALIDATION_INTERVAL_IN_SECONDS + ? Number(process.env.CACHE_REVALIDATION_INTERVAL_IN_SECONDS) + : 3600; const transport = createServerTransport( process.env.ZITADEL_SERVICE_USER_TOKEN!,