handle unuath response from patchdb ws, clean up old files, better setting of auth state

This commit is contained in:
Matt Hill
2021-10-06 13:15:51 -06:00
committed by Aiden McClelland
parent 446da8fd81
commit c3037d6251
12 changed files with 41 additions and 262 deletions

View File

@@ -9,7 +9,6 @@ import { Emver } from './services/emver.service'
import { SplitPaneTracker } from './services/split-pane.service'
import { ToastButton } from '@ionic/core'
import { PatchDbService } from './services/patch-db/patch-db.service'
import { HttpService } from './services/http.service'
import { ServerStatus } from './services/patch-db/data-model'
import { ConnectionFailure, ConnectionService } from './services/connection.service'
import { StartupAlertsService } from './services/startup-alerts.service'
@@ -69,7 +68,6 @@ export class AppComponent {
private readonly authService: AuthService,
private readonly router: Router,
private readonly embassyApi: ApiService,
private readonly http: HttpService,
private readonly alertCtrl: AlertController,
private readonly emver: Emver,
private readonly connectionService: ConnectionService,
@@ -141,10 +139,6 @@ export class AppComponent {
this.router.navigate(['/login'], { replaceUrl: true })
}
})
this.http.watchUnauth$().subscribe(() => {
this.authService.setUnverified()
})
}
async goToWebsite (): Promise<void> {