mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
logout whether or not BE
This commit is contained in:
committed by
Matt Hill
parent
5467247256
commit
b8aac0e208
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user