Resolve "Auth providers should be ready on components init"

This commit is contained in:
Jovan Krunić
2022-05-13 09:05:33 +00:00
parent 28caaf1d21
commit b7ae2cf019
11 changed files with 77 additions and 96 deletions

View File

@@ -89,7 +89,7 @@ export class AppComponent implements AfterContentInit {
if (Capacitor.isNativePlatform()) {
await StatusBar.setStyle({style: Style.Dark});
}
await this.authInit();
await this.authNotificationsInit();
// set order of categories in settings
this.settingsProvider.setCategoriesOrder([
@@ -101,9 +101,7 @@ export class AppComponent implements AfterContentInit {
});
}
private async authInit() {
await this.authHelper.getProvider('default').init();
await this.authHelper.getProvider('paia').init();
private async authNotificationsInit() {
this.authHelper
.getProvider('default')
.events$.subscribe(action =>