mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
logout whether or not BE
This commit is contained in:
committed by
Aiden McClelland
parent
06f0097961
commit
eea9a13252
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user