...
Code Block |
---|
[ { type : OTP, phone_number : +380951111119, is_primary : TRUE}, {type : THIRD_PERSON, value : 6eaeea53-47ac-459a-bcd8-c90a36947de6, reference: { type = OTP, phone_number : +380952222222} is_primary : FALSE}, type : THIRD_PERSON, value : b8c6679d-0df2-4407-8c3e-3fe58fa32655, reference: { type = OFFLINE}, is_primary : FALSE} ] |
So if person has third_person, then show info of the third_person’s auth_method where type = OTP or OFFLINE.
If person has auth_method.type = NA or third_preson.type = NA or person hasn’t active auth method - then don’t show this methods (if NA) and return NULL.