antonioribeiro / google2fa-qrcode

QRCode for Google2FA
MIT License
106 stars 25 forks source link

Authentication stopped working #6

Closed rickg123 closed 3 years ago

rickg123 commented 4 years ago

I have this package installed and setup on 2 applications, they have been working fine for a while. 2-3 days ago the authenticators stopped working. Sync, auth, everything just returns a fail from Google Auth.

Also all of the available demos provided are displaying "Whoops, looks like something went wrong." errors.

The secret and qr code are generated fine and the qr scans into Google Auth app, however when I try to add the 6 digit number back to auth the secret it fails. I have looked at the url generated for the qr code and it seems fine.

I setup your demo application on the same machine and got that working but I noticed a difference in the URLs and the length of the key on the demo is 9 more than in the code.

NOT WORKING otpauth://totp/ Laravel:ric%40invyte.co.uk? secret=2EJ3HNHZZI4GJ5KH& issuer=Laravel&algorithm=SHA1&digits=6&period=30

WORKING otpauth://totp/ PragmaRX:google2fa@pragmarx.com? secret=INONY7TOXZIAKRLHBCIMFIT4X &issuer=PragmaRX

Please advise if possible, many thanks