packages/angularjs-auth-keycloak/lib/profileData.js
function formatProfileData(profileData) {
  var profile;
  if (profileData) {
    profile = extractAttributeFields(profileData.attributes);
    profile.username = profileData.username;
    profile.email = profileData.email;
  }
  return profile;
}
function formatProfileData(profileData) {
  var profile;
  if (profileData) {
    profile = extractAttributeFields(profileData.attributes);
    profile.username = profileData.username;
    profile.email = profileData.email;
  }
  return profile;
}
function formatProfileData ( profileData ) { var profile ; if ( profileData ) { profile = extractAttributeFields ( profileData . attributes ) ; profile . username = profileData . username ; profile . email = profileData . email ; } return profile ; }
Formats profile data as expected by the application
@param profileData - Object which contains the profile data of a user
Formats profile data as expected by the application