Recipient for PIN
Description:
The Pre-auth bridge can handle the pin and auth code creation. However it still needs to be told where to actually send the pin.
Recipient can be either an email, or a did address for the didcomm protocol. Within the NATS request, recipient should be set as string. Pre-auth bridge could check via regex if its an email, or a didcomm and choose the correct messaging method automatically.
See did spec: https://www.w3.org/TR/did-core/#did-syntax
Acceptance Criteria:
-
Recipient is expected in NATS input IF PIN is required -
did vs email is detected, and correct NATS event fired.
Edited by Nguyen Minh Dang