diff --git a/projects/angular-auth-oidc-client/src/lib/iframe/check-session.service.ts b/projects/angular-auth-oidc-client/src/lib/iframe/check-session.service.ts index 7975e674..2d9556a8 100644 --- a/projects/angular-auth-oidc-client/src/lib/iframe/check-session.service.ts +++ b/projects/angular-auth-oidc-client/src/lib/iframe/check-session.service.ts @@ -104,9 +104,9 @@ export class CheckSessionService implements OnDestroy { ); } - private init(configuration: OpenIdConfiguration): Observable { + private init(configuration: OpenIdConfiguration): Observable { if (this.lastIFrameRefresh + this.iframeRefreshInterval > Date.now()) { - return of(undefined); + return of(); } const authWellKnownEndPoints = this.storagePersistenceService.read( @@ -137,6 +137,8 @@ export class CheckSessionService implements OnDestroy { configuration, 'CheckSession - init check session: checkSessionIframe is not configured to run' ); + + return of(); } if (!contentWindow) {