Skip to content

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

fix azure errors

Thomas Schuster7e98de6122af
diff --git a/pages/api/v1/auth/[...nextauth].ts b/pages/api/v1/auth/[...nextauth].ts
index e6af507b..dfe717e9 100644
--- a/pages/api/v1/auth/[...nextauth].ts
+++ b/pages/api/v1/auth/[...nextauth].ts
@@ -370,7 +370,15 @@ if (process.env.NEXT_PUBLIC_AZURE_AD_ENABLED === "true") {
const _linkAccount = adapter.linkAccount;
adapter.linkAccount = (account) => {
- const { "not-before-policy": _, refresh_expires_in, ...data } = account;
+ const {
+ "not-before-policy": _,
+ refresh_expires_in,
+ refresh_token_expires_in,
+ not_before,
+ id_token_expires_in,
+ profile_info,
+ ...data
+ } = account;
return _linkAccount ? _linkAccount(data) : undefined;
};
}
@@ -387,7 +395,15 @@ if (process.env.NEXT_PUBLIC_AZURE_AD_ENABLED === "true") {
const _linkAccount = adapter.linkAccount;
adapter.linkAccount = (account) => {
- const { "not-before-policy": _, refresh_expires_in, ...data } = account;
+ const {
+ "not-before-policy": _,
+ refresh_expires_in,
+ token_type,
+ expires_in,
+ ext_expires_in,
+ access_token,
+ ...data
+ } = account;
return _linkAccount ? _linkAccount(data) : undefined;
};
}