From c187a9c7cb207194fc31b184bf2a149b0b6a13f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Wed, 12 Jun 2024 11:27:57 +0200 Subject: [PATCH] fixup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .changeset/plenty-mirrors-laugh.md | 5 +++++ .../auth-backend-module-microsoft-provider/src/strategy.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/plenty-mirrors-laugh.md diff --git a/.changeset/plenty-mirrors-laugh.md b/.changeset/plenty-mirrors-laugh.md new file mode 100644 index 0000000000..f46e3b5937 --- /dev/null +++ b/.changeset/plenty-mirrors-laugh.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-auth-backend-module-microsoft-provider': patch +--- + +Minor internal type updates diff --git a/plugins/auth-backend-module-microsoft-provider/src/strategy.ts b/plugins/auth-backend-module-microsoft-provider/src/strategy.ts index cf2ff73965..d5a1aa31fe 100644 --- a/plugins/auth-backend-module-microsoft-provider/src/strategy.ts +++ b/plugins/auth-backend-module-microsoft-provider/src/strategy.ts @@ -22,7 +22,7 @@ import { Strategy as MicrosoftStrategy } from 'passport-microsoft'; export class ExtendedMicrosoftStrategy extends MicrosoftStrategy { userProfile( accessToken: string, - done: (err?: Error | null, profile?: PassportProfile) => void, + done: (err?: unknown, profile?: PassportProfile) => void, ): void { if (this.skipUserProfile(accessToken)) { done(null, undefined); @@ -31,7 +31,7 @@ export class ExtendedMicrosoftStrategy extends MicrosoftStrategy { super.userProfile( accessToken, - (err?: Error | null, profile?: PassportProfile) => { + (err?: unknown, profile?: PassportProfile) => { if (!profile || profile.photos) { done(err, profile); return;