From 02107784ad9e5e242210355681a459ed19be320e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Tue, 14 May 2024 15:00:29 +0200 Subject: [PATCH] chore: add temp env endpoint for seamless logout --- .env.local.example | 8 +++++++- env/server.ts | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.env.local.example b/.env.local.example index c1e013b50..8f97d39e3 100644 --- a/.env.local.example +++ b/.env.local.example @@ -19,10 +19,16 @@ NEXTAUTH_REDIRECT_PROXY_URL="http://localhost:3000/api/web/auth" NEXTAUTH_SECRET="" # NEXTAUTH_URL="DO NOT SET THIS HERE, it is managed in next.config.js" REVALIDATE_SECRET="" +WEBVIEW_ENCRYPTION_KEY="MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI=" SEAMLESS_LOGIN_DA="http://www.example.dk/updatelogin" SEAMLESS_LOGIN_DE="http://www.example.de/updatelogin" SEAMLESS_LOGIN_EN="http://www.example.com/updatelogin" SEAMLESS_LOGIN_FI="http://www.example.fi/updatelogin" SEAMLESS_LOGIN_NO="http://www.example.no/updatelogin" SEAMLESS_LOGIN_SV="http://www.example.se/updatelogin" -WEBVIEW_ENCRYPTION_KEY="MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI=" +SEAMLESS_LOGOUT_DA="http://www.example.dk/TBD" +SEAMLESS_LOGOUT_DE="http://www.example.de/TBD" +SEAMLESS_LOGOUT_EN="http://www.example.com/TBD" +SEAMLESS_LOGOUT_FI="http://www.example.fi/TBD" +SEAMLESS_LOGOUT_NO="http://www.example.no/TBD" +SEAMLESS_LOGOUT_SV="http://www.example.se/TBD" diff --git a/env/server.ts b/env/server.ts index e3a7e1ea8..c766e0bed 100644 --- a/env/server.ts +++ b/env/server.ts @@ -48,6 +48,13 @@ export const env = createEnv({ SEAMLESS_LOGIN_FI: z.string(), SEAMLESS_LOGIN_NO: z.string(), SEAMLESS_LOGIN_SV: z.string(), + SEAMLESS_LOGOUT_DA: z.string(), + SEAMLESS_LOGOUT_DE: z.string(), + SEAMLESS_LOGOUT_EN: z.string(), + SEAMLESS_LOGOUT_FI: z.string(), + SEAMLESS_LOGOUT_NO: z.string(), + SEAMLESS_LOGOUT_SV: z.string(), + URL: z.string().optional(), WEBVIEW_ENCRYPTION_KEY: z.string(), }, emptyStringAsUndefined: true, @@ -82,6 +89,13 @@ export const env = createEnv({ SEAMLESS_LOGIN_FI: process.env.SEAMLESS_LOGIN_FI, SEAMLESS_LOGIN_NO: process.env.SEAMLESS_LOGIN_NO, SEAMLESS_LOGIN_SV: process.env.SEAMLESS_LOGIN_SV, + SEAMLESS_LOGOUT_DA: process.env.SEAMLESS_LOGOUT_DA, + SEAMLESS_LOGOUT_DE: process.env.SEAMLESS_LOGOUT_DE, + SEAMLESS_LOGOUT_EN: process.env.SEAMLESS_LOGOUT_EN, + SEAMLESS_LOGOUT_FI: process.env.SEAMLESS_LOGOUT_FI, + SEAMLESS_LOGOUT_NO: process.env.SEAMLESS_LOGOUT_NO, + SEAMLESS_LOGOUT_SV: process.env.SEAMLESS_LOGOUT_SV, + URL: process.env.URL, WEBVIEW_ENCRYPTION_KEY: process.env.WEBVIEW_ENCRYPTION_KEY, }, })