@@ -11,9 +11,9 @@ import {
11
11
InteractionStatus ,
12
12
} from "@azure/msal-browser" ;
13
13
import { BehaviorSubject , Observable , ReplaySubject , Subject } from "rxjs" ;
14
- import { MsalService } from "./msal.service" ;
15
14
import { MsalBroadcastConfiguration } from "./msal.broadcast.config" ;
16
15
import { MSAL_BROADCAST_CONFIG , MSAL_INSTANCE } from "./constants" ;
16
+ import { name , version } from "./packageMetadata" ;
17
17
18
18
@Injectable ( )
19
19
export class MsalBroadcastService {
@@ -24,7 +24,6 @@ export class MsalBroadcastService {
24
24
25
25
constructor (
26
26
@Inject ( MSAL_INSTANCE ) private msalInstance : IPublicClientApplication ,
27
- private authService : MsalService ,
28
27
@Optional ( )
29
28
@Inject ( MSAL_BROADCAST_CONFIG )
30
29
private msalBroadcastConfig ?: MsalBroadcastConfiguration
@@ -34,8 +33,9 @@ export class MsalBroadcastService {
34
33
this . msalBroadcastConfig &&
35
34
this . msalBroadcastConfig . eventsToReplay > 0
36
35
) {
37
- this . authService
36
+ this . msalInstance
38
37
. getLogger ( )
38
+ . clone ( name , version )
39
39
. verbose (
40
40
`BroadcastService - eventsToReplay set on BroadcastConfig, replaying the last ${ this . msalBroadcastConfig . eventsToReplay } events`
41
41
) ;
@@ -62,8 +62,9 @@ export class MsalBroadcastService {
62
62
this . _inProgress . value
63
63
) ;
64
64
if ( status !== null ) {
65
- this . authService
65
+ this . msalInstance
66
66
. getLogger ( )
67
+ . clone ( name , version )
67
68
. verbose (
68
69
`BroadcastService - ${ message . eventType } results in setting inProgress from ${ this . _inProgress . value } to ${ status } `
69
70
) ;
0 commit comments