21 Dec 2023, 10:06

@flic-16 said in Which javascript version on SDK?:

Buffer.from is a Node.js specific feature not present in any javascript/ecmascript standard.

You can use Duktape.enc('base64', 'some string') instead to perform the Base64 encode.

Like this:

const EncodedAuth = Duktape.enc('base64', 'abcd123:Password!');