Claim Sets

Request specific mDL claims using predefined sets or custom claim configurations.

Predefined Claim Sets

The SDK provides predefined claim sets for common verification scenarios. Use these for quick integration while following privacy best practices:

Claim SetDescriptionClaims Included
'age_over_18'Age verification (18+)age_over_18
'age_over_21'Age verification (21+)age_over_21
'age_over_25'Age verification (25+)age_over_25
'identity_basic'Basic identity infogiven_name, family_name, birth_date
'identity_full'Full identityAll name fields, birth_date, portrait, document_number
'driving_privileges'License categoriesdriving_privileges, issue_date, expiry_date
'address'Address verificationresident_address, resident_city, resident_state, resident_postal_code

Using Predefined Sets

claim-sets.tstypescript
Loading...

Custom Claim Requests

Request specific claims using an array of claim names:

custom-claims.tstypescript
Loading...

Available Claims

The following claims are available from ISO 18013-5 mDL credentials. Not all issuers include all claims:

Personal Information

ClaimTypeDescription
family_namestringLast name / surname
given_namestringFirst name
birth_datestring (date)Date of birth (YYYY-MM-DD)
birth_placestringPlace of birth
portraitbinaryPhoto (JPEG or PNG)
sexnumberSex (ISO 5218)
heightnumberHeight in cm
weightnumberWeight in kg
eye_colourstringEye color
hair_colourstringHair color
nationalitystringNationality (ISO 3166-1)

Age Claims

ClaimTypeDescription
age_over_18booleanIs 18 or older
age_over_21booleanIs 21 or older
age_over_25booleanIs 25 or older
age_in_yearsnumberCurrent age in years
age_birth_yearnumberBirth year

Address Claims

ClaimTypeDescription
resident_addressstringStreet address
resident_citystringCity
resident_statestringState/Province
resident_postal_codestringPostal/ZIP code
resident_countrystringCountry code

Document Claims

ClaimTypeDescription
document_numberstringLicense number
issue_datestring (date)Issue date
expiry_datestring (date)Expiration date
issuing_authoritystringIssuing authority
issuing_countrystringIssuing country
issuing_jurisdictionstringIssuing state/province
driving_privilegesarrayVehicle categories

Accessing Claim Values

access-claims.tstypescript
Loading...

Privacy Best Practices

  • Minimal disclosure: Only request claims you actually need
  • Use age claims: Prefer age_over_21 over birth_date when possible
  • Avoid portrait: Don't request portrait unless necessary for face matching
  • Clear purpose: Provide a clear verificationPurpose to build user trust
Example: For alcohol age verification, use 'age_over_21' instead of'identity_full'. This respects user privacy while meeting your verification needs.