in packages/common/util/authMessage.js Probably use this implementation https://github.com/mafintosh/protocol-buffers-schema In the End one should get an base64 only message