-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google's QR API is dead #34
Comments
For generating QR code is not such a problem. How to get: String generatedCode = TimeBasedOneTimePasswordUtil.generateCurrentNumberString(key) from URL above? Thanks |
Assuming note: the first |
Thank you! :) |
@echometerain can't we also generate image without using external service? |
yeah you definitely could |
@echometerain Can it be done with any QR java library? like https://github.com/nayuki/QR-Code-generator or it requires something more? |
probably, never tried it though |
I have used: https://github.com/nayuki/QR-Code-generator to generate QR code (based on value from generateOtpAuthUrl). You will however need to update the method little bit and replace %3F and %26 on ? and & respectively. |
For example, I no longer generate the two-dimensional code locally, I want to pass this string to the front end, and the front end will generate the two-dimensional code. In addition, I want to ask, does the authenticator App support |
I don't quite understand where to use as the data source to generate the two-dimensional code, can you further help realize it |
if you're generating your own QR code (or using your "frontend" to do it), you should make the QR code encode the output of |
Use
https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=
+generateOtpAuthUrl()
instead ofqrImageUrl()
The text was updated successfully, but these errors were encountered: