Can't seem to get it to work. I am testing it only using B4J (v6.00) (not using B4A/B4i for now)
I changed:
Auth.Initialize("YOURAPPNAME", "YOURGMAILADDRESS") with my app name and my gmail email address.
When I press Button1 it returns a URL, Secret Key & 5 Scratch codes. (the secret key and the scratch codes seem to change each time I press Button1).
When I open the URL in a browser on my computer it shows a QR code. Using the Google Authenticator app I scan this QR code and it then shows a 6 digit number.
Looks like that part worked.
When I enter that 6 digit code in the B4J app (into the TextField1 field), and I press Button2 it says it's not allowed.
Do I need to put the value of
credentials.Secret in:
If Auth.Authorize("YOURSECRETKEY", TextField1.Text) Then ' replace YOURSECRETKEY with the value of credentials.Secret
If so, I tried that but it didn't seem to work.
Any ideas on what I might of done wrong ?