authy icon indicating copy to clipboard operation
authy copied to clipboard

Unable to generate 8 digit native Authy TOTP

Open justinmartin opened this issue 3 years ago • 4 comments

Clever.com implements Authy's TOTP directly. The code generated in Authy is 8 digits, is it possible for the client to generate an 7 digit code for it?

justinmartin avatar Jan 07 '22 14:01 justinmartin

I apologize, the client is generating a 7 digit code. However, the Clever never accepts it? Any suggestions how to troubleshoot this?

justinmartin avatar Jan 07 '22 14:01 justinmartin

Can google or github accept it ?

momaek avatar Jan 09 '22 17:01 momaek

I'm having the same issue with my Cloudflare token. Based on the following from the README for Alex Zorin's Authy library, it looks like this is caused by the fact that there are two types of tokens:

In Authy, there are two types of secrets:

  • Tokens: You sign up to a website, the website generates a TOTP secret, and you scan it via a QR code (in any app, not necessarily Authy). You can export that secret to other TOTP apps and the code will match.
  • Apps: The website has exported their TOTP flow to Authy's proprietary service, which requires you to use the Authy app. For sites like Twitch, Authy assigns a unique TOTP secret for every device you use the Authy app on. Each device will produce different 7-digit codes, but they will all work. If you deregister any device from your Authy account, that device's TOTP secrets will be revoked and its 7-digit codes will no longer work.

When I try to enter the code that's generated by the Go binary, I get an error message from Cloudflare saying I need to use the token from the app on my phone.

pyrmont avatar Apr 09 '22 04:04 pyrmont

emmmm... I'll figure out a solution for this case.

momaek avatar May 30 '22 10:05 momaek