From 26f1b0b4b0bdb75befc50f559e7e0d39b30581dc Mon Sep 17 00:00:00 2001 From: Aloento <11802769+Aloento@users.noreply.github.com> Date: Mon, 27 Nov 2023 08:45:22 +0100 Subject: [PATCH] Remove unused code in AccessToken function --- src/ShopNet/Database.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/ShopNet/Database.ts b/src/ShopNet/Database.ts index 78ed8b84..ab6c132c 100644 --- a/src/ShopNet/Database.ts +++ b/src/ShopNet/Database.ts @@ -85,11 +85,6 @@ export const MSAL = new PublicClientApplication({ * @version 0.1.0 */ export async function AccessToken(): Promise { - const auth = MSAL.getActiveAccount(); - - if (auth) - return auth.idToken; - try { const token = await MSAL.acquireTokenSilent({ scopes: [] }); return token.idToken;