Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-06-12 11:27:57 +02:00
parent 9a92307062
commit c187a9c7cb
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-auth-backend-module-microsoft-provider': patch
---
Minor internal type updates
@@ -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;