[GH-ISSUE #54] "Invalid token barcode" on IOS google authenticator app. #25

Closed
opened 2026-02-25 20:32:12 +03:00 by kerem · 3 comments
Owner

Originally created by @deno028 on GitHub (Nov 11, 2016).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/54

The lib work well on Android app but IOS.

Whatever I tried to change the keylength when I scan with my IPhone the error always appear: Invalid token barcode.

Originally created by @deno028 on GitHub (Nov 11, 2016). Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/54 The lib work well on Android app but IOS. Whatever I tried to change the keylength when I scan with my IPhone the error always appear: Invalid token barcode.
kerem closed this issue 2026-02-25 20:32:12 +03:00
Author
Owner

@aik099 commented on GitHub (Nov 11, 2016):

Are you using Google Authenticator app on iPhone as well?

With the Google Authenticator app I'm afraid you have to use default key length.

<!-- gh-comment-id:259980010 --> @aik099 commented on GitHub (Nov 11, 2016): Are you using Google Authenticator app on iPhone as well? With the Google Authenticator app I'm afraid you have to use default key length.
Author
Owner

@antonioribeiro commented on GitHub (Nov 30, 2016):

Did you set setEnforceGoogleAuthenticatorCompatibility to false? This enforcement was coded exactly because of this problem.

<!-- gh-comment-id:264015460 --> @antonioribeiro commented on GitHub (Nov 30, 2016): Did you set `setEnforceGoogleAuthenticatorCompatibility` to false? This enforcement was coded exactly because of this problem.
Author
Owner

@lucaq commented on GitHub (May 3, 2018):

Because there's an equal sign in the back of the string, and I just delete the equal sign, that's my method.

<!-- gh-comment-id:386209713 --> @lucaq commented on GitHub (May 3, 2018): Because there's an equal sign in the back of the string, and I just delete the equal sign, that's my method.
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#25
No description provided.