Added logout functionality. IO-403
This commit is contained in:
@@ -189,7 +189,16 @@ namespace BodyshopPartner.ViewModels
|
||||
IndeterminateLoading = false;
|
||||
}
|
||||
|
||||
public async Task LoadBodyshopData()
|
||||
|
||||
public void Logout()
|
||||
{
|
||||
Properties.Settings.Default.AuthToken = "";
|
||||
Properties.Settings.Default.RefreshToken = "";
|
||||
Properties.Settings.Default.Save();
|
||||
App.Current.Shutdown();
|
||||
}
|
||||
|
||||
public async Task LoadBodyshopData()
|
||||
{
|
||||
var r = new GraphQLRequest
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user