logout whether or not BE

This commit is contained in:
Drew Ansbacher
2021-09-01 12:17:08 -06:00
committed by Aiden McClelland
parent 06f0097961
commit eea9a13252

View File

@@ -180,22 +180,10 @@ export class AppComponent {
await alert.present()
}
// should wipe cache independant of actual BE logout
private async logout () {
const loader = await this.loadingCtrl.create({
spinner: 'lines',
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()
}
this.embassyApi.logout({ })
this.authService.setUnverified()
}
private watchConnection (): Subscription {