dist/command-builder.js
function buildXOAuth2Token(user = '', token) {
  let authData = [`user=${user}`, `auth=Bearer ${token}`, '', ''];
  return (0, _emailjsBase.encode)(authData.join('\x01'));
}
function buildXOAuth2Token(user = '', token) {
  let authData = [`user=${user}`, `auth=Bearer ${token}`, '', ''];
  return (0, _emailjsBase.encode)(authData.join('\x01'));
}
function buildXOAuth2Token ( user = '' , token ) { let authData = [ ` ${ user } ` , ` ${ token } ` , '' , '' ] ; return ( 0 , _emailjsBase . encode ) ( authData . join ( '\x01' ) ) ; }
Builds a login token for XOAUTH2 authentication command

@param {String} user E-mail address of the user
@param {String} token Valid access token for the user
@return {String} Base64 formatted login token
Builds a login token for XOAUTH2 authentication command