Update @azure/msal-node to 1.0.0-beta.3

The new version introduced a breaking change and requires manual changes.
This commit is contained in:
Oliver Sand
2021-01-15 13:34:04 +01:00
parent b6d6295f1d
commit f9ba00a1ca
4 changed files with 23 additions and 15 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
},
"dependencies": {
"@aws-sdk/client-organizations": "^3.2.0",
"@azure/msal-node": "^1.0.0-alpha.8",
"@azure/msal-node": "^1.0.0-beta.3",
"@backstage/backend-common": "^0.4.3",
"@backstage/catalog-model": "^0.6.1",
"@backstage/config": "^0.1.2",
@@ -96,6 +96,10 @@ export class MicrosoftGraphClient {
scopes: ['https://graph.microsoft.com/.default'],
});
if (!token) {
throw new Error('Error while requesting token for Microsoft Graph');
}
return await fetch(url, {
headers: {
Authorization: `Bearer ${token.accessToken}`,