I switched to needle, and basic auth is not working. It is not setting the authorization header properly.
I tried setting these options and it doesn't work. When I manually enter the header, that works.
{ username: ZD_CONFIG.email + '/token', password: ZD_CONFIG.api_token, auth: 'basic', }