export function makeBasicAuthorizationHeader ( username , password ) { let auth = Buffer . from ( `${ username }:${ password }` ) ; auth = ( < Buffer > auth ) . toString ( 'base64' ) ; return `Basic ${ auth }` ; } export function makeOauth2TokenAuthorizationHeader ( token ) { return `token ${ token }` ; }