JS-OTP icon indicating copy to clipboard operation
JS-OTP copied to clipboard

In Chrome 131 the OTP code is returning empty object.

Open fmrahman opened this issue 10 months ago • 0 comments

I have been using this JS-OTP code to generate the OTP from the secret. I am using this in the Selenium test cases to get the OTP for the web based applications. Recently when I am using this in Chrome 131, the OTP code is not returned instead I got [object Object]. When checked its a empty JS object {} that got returned. Please provide the fix in Chrome 131. Please let me know if you need any more information to debug this issue.

I am using below code to get the OTP

var totp = new jsOTP.totp(); totp.getOtp('');

Adding the error

ReferenceError: jsSHA is not defined jsOTP.min.js:19:789

fmrahman avatar Mar 11 '25 08:03 fmrahman