google / google-authenticator

Open source version of Google Authenticator (except the Android app)
Apache License 2.0
5.17k stars 966 forks source link

QR Code interpret differently on iOS #665

Closed devincudnohufsky closed 5 years ago

devincudnohufsky commented 5 years ago

The iOS version of the Google authenticator app will not process the QR Code of the following URL, however, the Android version does. Several other applications such as LastPass Authenticator and Authy follow the same logic as the Android version.

otpauth://totp/Company:user.name?secret=LHTX4AHM5UYBLH4S7R7REKXNKU======&issuer=Company&digits=6&period=30

By removing the equal signs from the secret and generating a new QR code, the application will work properly.

otpauth://totp/Company:user.name?secret=LHTX4AHM5UYBLH4S7R7REKXNKU&issuer=Company&digits=6&period=30