Add option for basic auth that sets header with token
dpikt opened this issue · 4 comments
rkillackey commented
@dpikt Should we assume that the token is already a base64 encoded username/pass combo?
dpikt commented
@rkillackey I was envisioning that it would do more work for you, provided username and password arguments.
{ basicAuthUser: 'david', basicAuthPass: 'secret' }
dpikt commented
@rkillackey actually, let's copy what axios does:
https://stackoverflow.com/a/44239543
rkillackey commented
Okay, yeah that's kind of what I started doing just with a different key