[GH-ISSUE #159] Get the TOTP to send through SMS #539

Closed
opened 2026-03-14 12:09:19 +03:00 by kerem · 1 comment
Owner

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.

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.
kerem closed this issue 2026-03-14 12:09:24 +03:00
Author
Owner

@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.

<!-- gh-comment-id:702400411 --> @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.
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/google2fa#539
No description provided.