I think I have found the issue the OTPAuth is too large when loaded with the crypto.js lib.
var crypto = require("crypto"); var otp = require("https://raw.githubusercontent.com/hectorm/otpauth/master/dist/otpauth.min.js");
Gives the following error
____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| espruino.com 2v03 (c) 2018 G.Williams >Uncaught SyntaxError: Got UNFINISHED STRING expected EOF at line 1 col 98 ...aster/dist/otpauth.min.js","(function(){/*\n otpauth v4.0.0 ... ^ Execution Interrupted New interpreter error: LOW_MEMORY,MEMORY >Uncaught Error: Module https://raw.githubusercontent.com/hectorm/otpauth/master/dist/otpauth.min.js not found at line 3 col 81 ...master/dist/otpauth.min.js"); ^ >
I will look for a different OTP lib
@user101436 started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I think I have found the issue the OTPAuth is too large when loaded with the crypto.js lib.
Gives the following error
I will look for a different OTP lib