mirror of
https://github.com/antonioribeiro/google2fa.git
synced 2026-04-26 08:35:54 +03:00
[GH-ISSUE #159] Get the TOTP to send through SMS #71
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/google2fa#71
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @davincileon on GitHub (Jul 25, 2020).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/159
Hi, the library is amazing. Is there some way, in case of the user doesn't have any authenticator app, to generate a valid TOPT to be sent via SMS ?
thanks in advance.
@antonioribeiro commented on GitHub (Oct 1, 2020):
You can probably use the
$google2fa->getCurrentOtp($secret)method to get the current OTP (one time password), but it lives only 30 seconds, so you better increase your window or your users will never have enough time to receive and type it.