DEV Community

rsanzedah
rsanzedah

Posted on

otp not working

Hello, i used topt.now for my automation code. Was working fine for signing in but as soon as i changed to updated chrome driver to 76, the opt part stopped working. The authentication is wrong now. Any feedback. Is there any relationship with chromedriver version for totp

public static String getotp(String secretkey) {
// String secretkey = "6BSLNLLRH7HLJFMM"; // <- this 2FA secret key.

Totp totp = new Totp(secretkey);
return totp.now();

Top comments (0)