简体   繁体   English

我可以使用 Authy 在 SMS 和电子邮件中发送相同的 OTP 吗?

[英]Can I sent the same OTP in SMS and in Email using Authy?

We want to provide an option to end user so that the user can get 2FA code in both way(in email and in SMS at same time)?我们想为最终用户提供一个选项,以便用户可以通过两种方式(同时通过电子邮件和短信)获得 2FA 代码? Is it possible to send the same OTP via email as well as SMS at same time in Authy?是否可以在 Authy 中同时通过电子邮件和短信发送相同的 OTP?

Twilio developer evangelist here. Twilio 开发人员布道者在这里。

Each different application/method of OTP delivery with Authy is assigned a different secret and generates different codes.使用 Authy 进行 OTP 交付的每个不同应用程序/方法都被分配了不同的秘密并生成不同的代码。 So you cannot send the same code over email and SMS at the same time.因此,您不能同时通过电子邮件和短信发送相同的代码。

However, if you send two different OTP codes to your user, then either of them will work when they input the code and you verify it against the API.但是,如果您向用户发送两个不同的 OTP 代码,那么当他们输入代码并且您针对 API 对其进行验证时,它们中的任何一个都将起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM