mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 08:33:11 +00:00
Resolve "Auth providers should be ready on components init"
This commit is contained in:
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user