code: function formatProfileData(profileData) {
    var profile;
    if (profileData) {
      profile = extractAttributeFields(profileData.attributes);
      profile.username = profileData.username;
      profile.email = profileData.email;
    }
    return profile;
  }
docs: Formats profile data as expected by the application
  @param profileData - Object which contains the profile data of a user