Open ivanshyu opened 3 weeks ago
Also it looks like https://quickchart.io/chart is mostly a drop in replacement for https://chart.googleapis.com/chart.
I did a replace on https://chart.googleapis.com/chart
=>https://quickchart.io/chart
in the generated URL and it works, mostly the same aside from slightly different formatting style.
Description
The
qr_code_url
method inGoogleAuthenticator
struct is currently using the Google Chart API (https://chart.googleapis.com/chart
) to generate QR codes. However, this API has been officially deprecated by Google and is no longer supported or maintained.As per Google's announcement:
This means that the QR code generation functionality is now broken and needs to be updated to use an alternative method.
Current Implementation
authenticator.rs (lines 249-271)
Questions
qr_code_url
method entirely, should we modify it to simply return the result ofSelf::create_scheme(name, secret, title)
? This would provide users with the TOTP URI, but we'd lose the ability to specify height, width, and error correction level.