ForkbombEu / mobile_zencode

0 stars 0 forks source link

Required claims now have different structure #19

Closed matteo-cristino closed 5 months ago

matteo-cristino commented 5 months ago

Mock API:

{
  "verification_request": {
    "claims_optional": [
      "nationality",
      "birthdat",
      "address"
    ],
    "claims_required": [
      "given_name",
      "family_name",
      "is_human"
    ],
    "didroom_metadata": {
      "didroom_id": "abcde",
      "iat": 1234567,
      "organization": "f332rf2",
      "origin": "https://didroom.com/s",
      "owner": "sfewfw32424"
    },
    "type": "Auth1"
  }
}

with didroom it is

{
   "items":[
      {
         "schema":{
            "properties":{
               "family_name":{
                  "title":"Current Family Name",
                  "type":"string"
               },
               "give_name":{
                  "title":"Current First Name",
                  "type":"string"
               }
            },
            "required":[
               "give_name",
               "family_name"
            ],
            "type":"object"
         }
      }
   ],
   "page":1,
   "perPage":30,
   "totalItems":1,
   "totalPages":1
}