MSAL Angular v4 includes security updates from MSAL Browser and adds Angular 19 support to the existing Angular 15-18 support.
Please see the MSAL Browser v3 migration guide for browser support and other key changes.
Due to changes in MSAL Browser related to local storage encryption, please ensure you are checking that initialization has completed and that interaction status is None before calling any account APIs.
this.msalBroadcastService.inProgress$
.pipe(
filter(
(status: InteractionStatus) => status === InteractionStatus.None
),
takeUntil(this._destroying$)
)
.subscribe(() => {
this.loginDisplay = this.authService.instance.getAllAccounts().length > 0;
});
The following developer samples are now available:
The samples demonstrates basic configuration and usage, and may be improved and added to incrementally.
See here for a list of the current MSAL Angular samples and the features demonstrated.