public async Task <(string Username, string Password)> GetUserCredentialsAsync(string userId) { var credentials = _identityMap.GetUsernameAndPassword(userId); if (credentials.Username == null) { return(await GetUsernameAndPasswordAsync(userId)); } if (credentials.Password == null) { return(await GetPasswordAsync(credentials.Username)); } return(credentials); }