Пример #1
0
        public static async Task Initialize()
        {
            if (TryReadSavedCredentials())
                LoggedUser = await CheckTokenAsync();

            if (LoggedUser == null)
                LoggedUser = await AuthAsync();
        }
Пример #2
0
 public static async Task LogoutAsync()
 {
     DeleteCredentials();
     LoggedUser = await AuthAsync();
 }