public async Task SyncCurrentUserInfo() { if (!localStorage.HasAccessToken()) { currentUserProvider.SetUserInfoLoading(false); return; } currentUserProvider.SetUserInfoLoading(true); var response = await GetCurrentUserInfo(); if (response == null) { var success = await GetRefreshedToken(); if (success) { response = await GetCurrentUserInfo(); } } if (response == null) { currentUserProvider.SetUserInfoLoading(false); localStorage.RemoveAuthorizationTokens(); } else { currentUserProvider.SetCurrentUserInfoFromResponse(response); } }