-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add bearer auth capabilities to http transport; #1662
Conversation
has some connection to #1020 |
… 6 compatibility;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is generally a useful feature - thanks! Requested some minor improvements, can approve after they're addressed.
Also, if you merge master into your branch, CI should pass now
Merge in master source
One other thing i can improve is the typescript definition to force the developer to use either bearer or basic. right now both could be filled in and result in some oddities. |
I think if both are set then it's more or less user error. One could imagine some weird backends too where you'd want that flexibility. So I think this PR is good to go as-is. Thanks for your patience! |
* add bearer auth capabilities to http transport; * replace headers clone via spread operator with Object.assign for node 6 compatibility;
No description provided.