From bc3ec3cc54c47a0cfbc79c5ccb27c48cf41e90df Mon Sep 17 00:00:00 2001 From: Thomas Schuster Date: Sun, 26 May 2024 16:52:53 +0200 Subject: [PATCH] fix small mistakes --- pages/api/v1/auth/[...nextauth].ts | 1 + pages/api/v1/logins/index.ts | 5 +++-- types/enviornment.d.ts | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/api/v1/auth/[...nextauth].ts b/pages/api/v1/auth/[...nextauth].ts index adbd457..e6af507 100644 --- a/pages/api/v1/auth/[...nextauth].ts +++ b/pages/api/v1/auth/[...nextauth].ts @@ -373,6 +373,7 @@ if (process.env.NEXT_PUBLIC_AZURE_AD_ENABLED === "true") { const { "not-before-policy": _, refresh_expires_in, ...data } = account; return _linkAccount ? _linkAccount(data) : undefined; }; +} // Azure AD if (process.env.NEXT_PUBLIC_AZURE_AD_ENABLED === "true") { diff --git a/pages/api/v1/logins/index.ts b/pages/api/v1/logins/index.ts index 6d2c998..7e290af 100644 --- a/pages/api/v1/logins/index.ts +++ b/pages/api/v1/logins/index.ts @@ -59,13 +59,14 @@ export function getLogins() { if (process.env.NEXT_PUBLIC_AZURE_AD_B2C_ENABLED === "true") { buttonAuths.push({ method: "azure-ad-b2c", - name: process.env.AUTHENTIK_CUSTOM_NAME ?? "Azure AD B2C", + name: process.env.AZURE_AD_B2C_CUSTOM_NAME ?? "Azure AD B2C", }); + } // Azure AD if (process.env.NEXT_PUBLIC_AZURE_AD_ENABLED === "true") { buttonAuths.push({ method: "azure-ad", - name: process.env.AUTHENTIK_CUSTOM_NAME ?? "Azure AD", + name: process.env.AZURE_AD_CUSTOM_NAME ?? "Azure AD", }); } // Battle.net diff --git a/types/enviornment.d.ts b/types/enviornment.d.ts index f24b1f3..a1af24f 100644 --- a/types/enviornment.d.ts +++ b/types/enviornment.d.ts @@ -95,6 +95,7 @@ declare global { // Azure AD B2C NEXT_PUBLIC_AZURE_AD_B2C_ENABLED?: string; + AZURE_AD_B2C_CUSTOM_NAME?: string; AZURE_AD_B2C_TENANT_NAME?: string; AZURE_AD_B2C_CLIENT_ID?: string; AZURE_AD_B2C_CLIENT_SECRET?: string; @@ -102,6 +103,7 @@ declare global { // Azure AD NEXT_PUBLIC_AZURE_AD_ENABLED?: string; + AZURE_AD_CUSTOM_NAME?: string; AZURE_AD_CLIENT_ID?: string; AZURE_AD_CLIENT_SECRET?: string; AZURE_AD_TENANT_ID?: string;