Closed FrancisJen closed 3 years ago
I'm afraid there isn't really enough information here for me to identify a problem, but I do appreciate the effort to provide a reproduction case. What algorithm/code length is Google Authenticator using for this key?
Also, please note that this is incorrect:
if(code.toString().length() < 6) {
code = code * 10;
}
return code.toString();
I recommend this instead (assuming your code length is 6):
return String.format("%06d", code);
Closing due to lack of information.