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;