I am trying to implement otp token generator using the library 'otplib' in my vue application that has a capacitor so I can port the app to IOS and Android. The issue is when I "authenticator.generate(secret)" it gives the error: "ReferenceError: Buffer is not defined" from the Capacitor/Console. What can I do?
I tried to use other libraries such as speakeasy but it did not work.