G
G
gitdev2019-02-04 19:37:21
Google Authenticator
gitdev, 2019-02-04 19:37:21

Why does an error appear when scanning a QR code in google authenticator?

Locally developed according to this manual:
https://habr.com/ru/sandbox/70272/
When scanning a locally generated QR code, an error appears:
"Unable to recognize the key."
The time was set on the phone as on a local PC.
QR code example:

https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&chl=otpauth://totp/[email protected]&secret=PH3BHZ332LPJ3JGK

How to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EminH, 2019-03-14
@EminH

A little late, you probably already figured it out - but I will answer, suddenly someone needs it.
The format should be as indicated here , namely:
You just have the "secret" parameter separated from the "host" by "&" and should "?", here the rules are the same as in any URL :

The question mark is used as a separator, and is not part of the query string.[2][3]
Web frameworks may provide methods for parsing multiple parameters in the query string, separated by some delimiter. In the example URL , multiple query parameters are separated by the ampersand, "&":

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question