File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
102
102
protected inImplicitFlow = false ;
103
103
104
104
protected saveNoncesInLocalStorage = false ;
105
+ private document : Document ;
105
106
106
107
constructor (
107
108
protected ngZone : NgZone ,
@@ -112,12 +113,15 @@ export class OAuthService extends AuthConfig implements OnDestroy {
112
113
protected urlHelper : UrlHelperService ,
113
114
protected logger : OAuthLogger ,
114
115
@Optional ( ) protected crypto : HashHandler ,
115
- @Inject ( DOCUMENT ) private document : Document
116
+ @Inject ( DOCUMENT ) document : any
116
117
) {
117
118
super ( ) ;
118
119
119
120
this . debug ( 'angular-oauth2-oidc v8-beta' ) ;
120
121
122
+ // See https://github.com/manfredsteyer/angular-oauth2-oidc/issues/773 for why this is needed
123
+ this . document = document ;
124
+
121
125
this . discoveryDocumentLoaded$ = this . discoveryDocumentLoadedSubject . asObservable ( ) ;
122
126
this . events = this . eventsSubject . asObservable ( ) ;
123
127
You can’t perform that action at this time.
0 commit comments