Skip to content

Commit

Permalink
Init client properly
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheberle committed Jun 24, 2024
1 parent c36940e commit 45dc480
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions teams-directory/assets/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,12 @@ async function initMsalClient(tenantid, clientId) {
};

const msalClient = new PublicClientApplication(msalConfig);

return await msalClient.initialize();

// init client
await msalClient.initialize()

// return initialised client
return msalClient;
}

function sortList(a, b) {
Expand Down

0 comments on commit 45dc480

Please sign in to comment.