make-fetch-happen
make-fetch-happen copied to clipboard
Cookie jar
Use tough-cookie
as the default cookie jar, and allow users to pass in their own cookie jar or disable cookie support entirely.
Note: this probably means we'll need to do the redirect on our side rather than leaving it to node-fetch, since intermediate cookies are a thing and node-fetch has no hook for it.
This might be pretty doable once #26 is fixed 🎉
Would this complicate the cache logic? I’d love to use it if it became a feature/help make it a feature, but I’m unsure about the interactions between cookies, cache-control: private
, and the credentials
argument.