Description
I'm looking into adding Signal support for an app that uses one-time-passwords (OTPs) sent to user's phone numbers to verify them.
I.e. the app is sending OTPs via SMS, WhatsApp message, phone call (with voice) etc.
For Signal support I would need to be able to send a text message with the OTP to a phone number that is not in my contacts.
Is this possible at all with the Signal API in general or the API exposed in this crate?
It seems the Signal clients themselves handle contact discovery behind the scenes, through the phone's contact list. I.e. there is no way to add a phone number to Signal inside the app itself. So I wonder if this is intentionally done this way by Signal (spam prevention) and what I want to do is not possible at all?
As a workaround: is it possible to send a request to a user to allow messages from that number?
It would mean sending an OTP is a two-step process but it would be better than not being able to offer this at all.