@@ -11,9 +11,9 @@ import {
1111 InteractionStatus ,
1212} from "@azure/msal-browser" ;
1313import { BehaviorSubject , Observable , ReplaySubject , Subject } from "rxjs" ;
14- import { MsalService } from "./msal.service" ;
1514import { MsalBroadcastConfiguration } from "./msal.broadcast.config" ;
1615import { MSAL_BROADCAST_CONFIG , MSAL_INSTANCE } from "./constants" ;
16+ import { name , version } from "./packageMetadata" ;
1717
1818@Injectable ( )
1919export class MsalBroadcastService {
@@ -24,7 +24,6 @@ export class MsalBroadcastService {
2424
2525 constructor (
2626 @Inject ( MSAL_INSTANCE ) private msalInstance : IPublicClientApplication ,
27- private authService : MsalService ,
2827 @Optional ( )
2928 @Inject ( MSAL_BROADCAST_CONFIG )
3029 private msalBroadcastConfig ?: MsalBroadcastConfiguration
@@ -34,8 +33,9 @@ export class MsalBroadcastService {
3433 this . msalBroadcastConfig &&
3534 this . msalBroadcastConfig . eventsToReplay > 0
3635 ) {
37- this . authService
36+ this . msalInstance
3837 . getLogger ( )
38+ . clone ( name , version )
3939 . verbose (
4040 `BroadcastService - eventsToReplay set on BroadcastConfig, replaying the last ${ this . msalBroadcastConfig . eventsToReplay } events`
4141 ) ;
@@ -62,8 +62,9 @@ export class MsalBroadcastService {
6262 this . _inProgress . value
6363 ) ;
6464 if ( status !== null ) {
65- this . authService
65+ this . msalInstance
6666 . getLogger ( )
67+ . clone ( name , version )
6768 . verbose (
6869 `BroadcastService - ${ message . eventType } results in setting inProgress from ${ this . _inProgress . value } to ${ status } `
6970 ) ;
0 commit comments