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