Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

fix small mistakes

Thomas Schusterbc3ec3cc54c4
diff --git a/pages/api/v1/auth/[...nextauth].ts b/pages/api/v1/auth/[...nextauth].ts
index adbd4579..e6af507b 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 6d2c9980..7e290af2 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 f24b1f32..a1af24fd 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;