Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending a OTP text message to a 'new' contact? #248

Open
virtualritz opened this issue Mar 28, 2024 · 1 comment
Open

Sending a OTP text message to a 'new' contact? #248

virtualritz opened this issue Mar 28, 2024 · 1 comment

Comments

@virtualritz
Copy link

virtualritz commented Mar 28, 2024

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.

@virtualritz virtualritz changed the title Sending a text message to a 'new' contact? Sending a OTP text message to a 'new' contact? Mar 28, 2024
@gferon
Copy link
Collaborator

gferon commented Apr 6, 2024

This has been a missing feature of our stack for quite some time. I'm currently working on integrating the PNI system which should be the first step necessary to make this possible. I'll keep track of this issue and see what else needs to be done afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants