Skip to content

Commit ee6c55a

Browse files
committed
fix: this.config.customTokenParameters is undefined
1 parent 8d152c2 commit ee6c55a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

projects/lib/src/oauth-service.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,15 @@ export class OAuthService extends AuthConfig implements OnDestroy {
124124
) {
125125
super();
126126

127-
this.debug('angular-oauth2-oidc v8-beta');
127+
this.debug('angular-oauth2-oidc v10');
128128

129129
// See https://github.com/manfredsteyer/angular-oauth2-oidc/issues/773 for why this is needed
130130
this.document = document;
131131

132+
if (!config) {
133+
config = {};
134+
}
135+
132136
this.discoveryDocumentLoaded$ = this.discoveryDocumentLoadedSubject.asObservable();
133137
this.events = this.eventsSubject.asObservable();
134138

0 commit comments

Comments
 (0)