Open Ferry-200 opened 2 months ago
According to Key-Uri-Format#digits, the totp code can has 6 or 8 digits. But generateTOTPCode's Implementation supports 6 digits only.
Does changing the code return code.toString().padLeft(6, '0'); to return code.toString().padLeft(8, '0'); works?
return code.toString().padLeft(6, '0');
return code.toString().padLeft(8, '0');
Any solution?
According to Key-Uri-Format#digits, the totp code can has 6 or 8 digits. But generateTOTPCode's Implementation supports 6 digits only.
Does changing the code
return code.toString().padLeft(6, '0');
toreturn code.toString().padLeft(8, '0');
works?