Skip to content

Commit b9fcfe7

Browse files
authored
fix: ensure msal public client application is initialized (#2702)
1 parent a5aec5a commit b9fcfe7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/providers/mgt-msal2-provider/src/Msal2Provider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ export class Msal2Provider extends IProvider {
386386
} else {
387387
throw new Error('either clientId or publicClientApplication must be provided');
388388
}
389+
await this._publicClientApplication.initialize();
389390

390391
this.ms_config.system = msalConfig.system || {};
391392
this.ms_config.system.iframeHashTimeout = msalConfig.system.iframeHashTimeout || 10000;

0 commit comments

Comments
 (0)