From a418fc810a67a2abe71d172fab87223b9f649cde Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 8 Feb 2017 00:19:30 -0500 Subject: [PATCH] log out when checking account reivison if authentication issue --- src/App/Services/SyncService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/App/Services/SyncService.cs b/src/App/Services/SyncService.cs index a2631c69b..e64e1c193 100644 --- a/src/App/Services/SyncService.cs +++ b/src/App/Services/SyncService.cs @@ -203,6 +203,12 @@ namespace Bit.App.Services return true; } + if(Application.Current != null && (accountRevisionDate.StatusCode == System.Net.HttpStatusCode.Forbidden + || accountRevisionDate.StatusCode == System.Net.HttpStatusCode.Unauthorized)) + { + MessagingCenter.Send(Application.Current, "Logout", (string)null); + } + return false; }