Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
Remove unused code in AccessToken function
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloento committed Nov 27, 2023
1 parent fe12598 commit 26f1b0b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/ShopNet/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ export const MSAL = new PublicClientApplication({
* @version 0.1.0
*/
export async function AccessToken(): Promise<string | void> {
const auth = MSAL.getActiveAccount();

if (auth)
return auth.idToken;

try {
const token = await MSAL.acquireTokenSilent({ scopes: [] });
return token.idToken;
Expand Down

0 comments on commit 26f1b0b

Please sign in to comment.