So the way we encoded was with the base-64 package's encode(). This function did not properly encode special characters (pretty much non-ASCII stuff was bonked).
With node's August 2018 update, there is now an in-house way to encode stuff. We don't need the base-64 package now, which is good.
// from https://gist.github.com/brandonmwest/a2632d0a65088a20c00aauth = (Buffer.from(${username}:${password}).toString('base64')
So I removed the base-64 dependency and just used the build in Node toString('base-64') functionality instead.
So the way we encoded was with the base-64 package's encode(). This function did not properly encode special characters (pretty much non-ASCII stuff was bonked).
With node's August 2018 update, there is now an in-house way to encode stuff. We don't need the base-64 package now, which is good.
// from https://gist.github.com/brandonmwest/a2632d0a65088a20c00a
auth = (Buffer.from(
${username}:${password}).toString('base64')
So I removed the base-64 dependency and just used the build in Node toString('base-64') functionality instead.