Btoa method is not defined

Hey @Chavas

Can you try this out - Node.js throws "btoa is not defined" error - Stack Overflow. Basically, btoa is not supported in node > v4. They recommend using this

Buffer.from(apiKey.value).toString('base64')

You can also use this :link: base-64 - npm

2 Likes