logout whether or not BE

This commit is contained in:
Drew Ansbacher
2021-09-01 12:17:08 -06:00
committed by Matt Hill
parent 5467247256
commit b8aac0e208

View File

@@ -180,22 +180,10 @@ export class AppComponent {
await alert.present() await alert.present()
} }
// should wipe cache independant of actual BE logout
private async logout () { private async logout () {
const loader = await this.loadingCtrl.create({ this.embassyApi.logout({ })
spinner: 'lines', this.authService.setUnverified()
message: 'Logging out...',
cssClass: 'loader',
})
await loader.present()
try {
await this.embassyApi.logout({ })
this.authService.setUnverified()
} catch (e) {
await this.errToast.present(e)
} finally {
loader.dismiss()
}
} }
private watchConnection (): Subscription { private watchConnection (): Subscription {