public static async Task <bool> Logout() { var successful = await Post <bool>("api/v1/auth/logout", new { SessionToken = BaseApi.GetSessionToken(), InstallationToken = UIRuntime.GetInstallationToken() // To disable sending push notifications to this device. }); if (successful) { IO.File("SessionToken.txt").Delete(); User.Current = null; Nav.DisposeCache(); await Api.DisposeCache(); } return(successful); }