Comments (36)
For me the solution was Menu -> Settings -> Time Correction for Codes -> Sync now
- apparently my clock was not in sync
from google-authenticator-android.
This could be a timezone and DST problem. Could you switch your phone to a US time zone such as Los Angeles, to see if that fixes it? (this is only to try to find the problem)
What is your phone brand? Is the phone clock set correctly?
from google-authenticator-android.
I'm seeing the same problem - and yes, the box in the setup flow accepts the code, which sounds like it's a Github issue rather than an auth app issue, but I don't know enough to be sure. (The account is definitely correct, as the recovery code for that account works.)
The authenticator app worked for a very long time with Github, so I don't know what's changed.
from google-authenticator-android.
Okay, somewhat solved - I hadn't hit the green "Enable two-factor authentication" button on the final screen, which is disabled until you download the recovery codes. I hadn't done that because:
- I already had recovery codes (they hadn't changed since it had been working before)
- I didn't think I'd need to enable 2FA when it was already clearly enabled...
I've suggested that Github might want to revisit their UI on this. Either way, it definitely isn't a Google Authenticator issue in my case.
from google-authenticator-android.
@nathanl thanks, that also resolved my problem.
from google-authenticator-android.
The phone is a Galaxy S/SGH-I897. The time is currently 17:51 PDT Nov 1, 2016, (accurate) in sync with NTP servers as per Cyanogemod/Android settings.
shell@SGH-I897:/ $ date
Tue Nov 1 17:23:19 PDT 2016
1|shell@SGH-I897:/ $ settings get global time_zone
null
shell@SGH-I897:/ $ settings put global time_zone America/Vancouver
shell@SGH-I897:/ $ settings get global time_zone
America/Vancouver
After a reboot, I attempted to Sync time in Google Authenticator, but it told me it failed as the time was already in sync with Google's servers.
from google-authenticator-android.
When you say accurate I assume that it's the time-of-cut-and-paste than caused the 17:51/17:23 difference.
4.60, that means Play store version, right. Just the standard disclaimer:
--
FYI: The version in Google Play Store / Apple App store is not the same as this opensource version. They've diverged. This opensource version is also unlikely to end up in the app stores. This open source version doesn't get much love, but I'll accept well-written pull requests. But don't expect this feature to be implemented by Google.
--
But 4.60? That's not the newest version of even that. Could you try updating?
from google-authenticator-android.
This could be #25 fixed in #4 (and in app store version).
I don't know when version 4.60 is from. Could be before this patch.
from google-authenticator-android.
Yes, I pasted approximately 2 minutes later to explain the cut-and-paste time discrepancy above.
As per #25 I verified it's 24-hour time in my Cyanogenmod/Android settings. I turned it off, restarted, and tried unsuccessfully, and then changed it back to the default - on.
I have since upgraded to Google Authenticator 4.74 and the codes are still not working -- as far as I can't successfully login to Github with them. I verified that the time is still in sync with version 4.74.
I'm now temporarily locked out of trying to login to Github after so many unsuccessful attempts.
from google-authenticator-android.
With the timing this could be DST-related. Could you try it again tomorrow?
from google-authenticator-android.
I just tried it again to no avail. I verified the time is synchronized first.
Is there a good test site I can add to verify if it's working elsewhere?
Once I recover Github access, I will turn off 2fa there and sell this Android device, so I need it for no other purpose than to resolve this, if that helps. I can show someone my screen, run adb/logcat etc.
from google-authenticator-android.
Are you saying that if you re-add a google 2fa account (scanning barcode and everything), it won't work?
from google-authenticator-android.
Hi, Thomas. I have the same symptoms on my fairly new Google-managed Nexus 6P. Is there some way I can help track this down?
from google-authenticator-android.
Also, yes, I uninstall Google Authenticator, re-installed, scaned the github QR code, made sure Google Authenticator is happy with my time settings by doing a "Sync now", and verified my timezone and time are set automatically. I do not use 24-hour time. One thought: could it have anything to do with my having two accounts on my phone? I have my [email protected] and [email protected] at the same time. That does confuse a lot of apps.
from google-authenticator-android.
It should not be affected by multiple accounts.
IIRC the github flow includes a "put a code here to prove you've set it up", no? (google's flow does, I'm almost entirely sure) Does that box accept the code at setup?
Also, since you're a @google.com, I would recommend trying to re-add the gmail account and if it fails file internal bugs. Presumably you use the App store version (see standard disclaimer above).
from google-authenticator-android.
If this is reproducible for you then could you try a separate TOTP app, and see if it has the same issue? If it does then it's almost definitely a problem on the github side. (could still be android system, somehow)
from google-authenticator-android.
@ThomasHabets: Happy to try, yes. Any specific ones you'd like to suggest?
from google-authenticator-android.
@jskeet I've not really used others much, but I seem to recall this one working for me:
https://play.google.com/store/apps/details?id=org.fedorahosted.freeotp&hl=en
If you scan the same QR code they should be in sync with their codes. So if they are and github still has trouble, then I'd say it's an issue with github.
from google-authenticator-android.
@ThomasHabets: Thanks, just tried that, and got exactly the same problem. Will see if I can find the right place to file a bug with Github...
from google-authenticator-android.
Reported via contact page, including link to this. Will see if anything comes of it.
from google-authenticator-android.
Thanks for investigating.
from google-authenticator-android.
I'm having this same issue - and GitHub is showing 2FA as enabled so it's not the above UI issue for me.
I've tried deregistering and reregistering 2FA in Google Authenticator to no avail.
The first code generated during configuration works for configuration, but no further generated codes work.
from google-authenticator-android.
@tonycmyoung Could you try it with FreeOTP, mentioned earlier in the thread?
If it does work with that one, then GAA has a bug.
from google-authenticator-android.
I'm also having this issue. I've tried both GAA and FreeOTP, and although I can successfully register my device, 2FA doesn't work for subsequent logins. Timezone and time are set automatically on my phone.
@tonycmyoung have you tried contacting GitHub support already?
from google-authenticator-android.
I'm assuming this is a github issue then, so treating that as the root cause.
from google-authenticator-android.
+1 for same issue 😢
Currently using SMS as a work around but don't want to rely on it since I'll be unable to access my phone number soon.
from google-authenticator-android.
@fernandobrito @NickBrooks Have you checked the solution @jskeet suggested in this thread?
from google-authenticator-android.
Now it works. I hadn't really seen his solution before:
Okay, somewhat solved - I hadn't hit the green "Enable two-factor authentication" button on the final screen, which is disabled until you download the recovery codes. I hadn't done that because:
I already had recovery codes (they hadn't changed since it had been working before)
I didn't think I'd need to enable 2FA when it was already clearly enabled...
I also thought that the button was disabled because 2FA was already enabled before.
from google-authenticator-android.
@capi my 2FA looks like this (I can't see where else to further turn it 'on')...
from google-authenticator-android.
@NickBrooks: You need to go through the "edit" process again, and makes sure you hit the "Enable" button at the end of the process.
@fernandobrito: Exactly, my thoughts too. I suggested to the Github team that they might want to revisit the UI...
from google-authenticator-android.
@jskeet A ha - fixed.
Seriously confusing little UX... it feels like it's done as soon as you scan the barcode (like most other 2FA) so I just close out of it rather than continue on with the process. A little tweak needed to make that more clear.
Thanks!
from google-authenticator-android.
For me the solution was
Menu -> Settings -> Time Correction for Codes -> Sync now
- apparently my clock was not in sync
I ran into the same issue today (coincidentally or due to Daylight Savings Time change yesterday !?). This proposed solution did not work for me. I did the following that fixed 2FA error during sign-in.
- Removed github account from my Authenticator app (on Android phone)
- Go to github.com in a browser on Desktop, go to Account --> Settings --> Security --> Authenticator App --> Configure
- Scan the bar code on the Desktop browser from the Authenticator App
- Enter the 6 digit code
After this, I was able to use 2FA to sign in.
from google-authenticator-android.
Go to github.com in a browser on Desktop, go to Account --> Settings --> Security --> Authenticator App --> Configure
How are you logging into Github if Google Authenticator isn't working? If I could login to my account, I could easily resolve this issue. It's been over 3 years without access to my Github account.
from google-authenticator-android.
Used Microsoft and Google Authenticator. Both having errors.
from google-authenticator-android.
Maybe the time clock issue is happening to me, Brazilian summertime has changed this year.
Let me check.
from google-authenticator-android.
Yes, looks like the observatories did not update the f* timezone list.
from google-authenticator-android.
Related Issues (20)
- Current Google Authenticator Version does not work on Android 2.3.7 HOT 3
- Stable version, compatible with Android 2.3.7?
- Query the function of the specified account HOT 3
- App can't be installed on devices w/o back-facing camera HOT 3
- The problem with data recovery
- Invalid Codes for 3rd Parties HOT 2
- 8digits HOT 1
- Maven library error when building apk
- F-Droid HOT 6
- A problem with hotmail.com Google Accounts "[email protected] like Google Account" do not have the code email to verify HOT 1
- Active search
- Help request - decode otpauth-migration://offline?data= uri HOT 10
- InflateException: Binary XML file line #110 HOT 2
- Consider adding ability to momentarily pause 6-digit code from refreshing while entering it
- Error: Cannot interpret QR code HOT 7
- google authenticator 2fa key value illegal character HOT 6
- Feature Request: Rearrange the order of your accounts
- Support client side encrypted backups and device to device transfers.
- Infinite loading after selecting the account in the dialog for sign in HOT 3
- Archive unmaintained repository HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-authenticator-android.