force initservices to wait until authentication is no longer blocking

This commit is contained in:
Art Lowel
2022-08-23 17:50:46 +02:00
parent ca87f09625
commit 4b20b0cb81
4 changed files with 46 additions and 16 deletions

View File

@@ -91,6 +91,13 @@ export class BrowserInitService extends InitService {
this.initKlaro();
// wait for auth to be ready
await this.store.pipe(
select(isAuthenticationBlocking),
distinctUntilChanged(),
find((b: boolean) => b === false)
).toPromise();
return true;
};
}