Stackpath security makes grabbing session cookies from Neopets fairly difficult with networking API's alone. This repository contains a working solution that uses puppeteer-firefox to perform the login.
Update package.json with your own Neopets credentials and run the following commands:
npm install
npm run test