There are several type of attributes that can be stored on a user's Digital ID app. Yoti provides the ability to request these attributes by specifying a share policy.
The attributes are independent of each other, so they can be requested separately. In order to request the required attributes using our SDKs, see the following examples:
x
const { DigitalIdentityBuilders: { PolicyBuilder }} = require('yoti');const policy = new PolicyBuilder() // using predefined methods to request attributes .withFullName() .withEmail() .withPhoneNumber() .withPostalAddress() .withSelfie() .withAgeOver(18) .withDateOfBirth() .withNationality() .withGender() .withStructuredPostalAddress() .withDocumentDetails() .withDocumentImages() .withWantedRememberMe() // using attributes specified by name .withWantedAttributeByName("given_names") .withWantedAttributeByName("family_name") // if you wish the user to prove it's them by taking a selfie on share .withSelfieAuthentication() .build();After creating the policy, you have to specify it in the session configuration as described here.
Was this page helpful?