You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 4, 2020. It is now read-only.
The got http library doesn't support authentication in URLs such as user:[email protected], so there's currently no way to use gateways with basic auth in front of them.
Looks like this was raised as an issue on the old repository austinfrey#5 - and PR #6 does add basic auth, but was never merged, and seems to be against an old version.
Would it be better to –
Add a second constructor argument allowing you to add got options so you can call new OpenFaas(gateway, { auth: "user:pass" }) and any requests will then merge that in before sending