Skip to content

v3.20.0

Compare
Choose a tag to compare
@laurent-yoti laurent-yoti released this 06 Apr 16:43

Description

Added

Support existence of several attributes with the same name in the profile.

// Additions
BaseProfile.getAttributesByName(attrName) // returns Attribute[]
BaseProfile.getAttributesList() // returns Attribute[]

// Usage
const someProfile = activityDetails.getProfile();
someProfile.getAttributesByName('family_name');
someProfile.getAttributesList();

Changed

Internal usage only

BaseProfile.constructor() now accepts both Object[] and Object.<string, Object>, to support multiple attributes with the same name

Deprecated

BaseProfile.profileData
BaseProfile.propertyExists