iriscouch/browser-request

Not support bearer authentication

Opened this issue · 1 comments

Bearer authentication is not supported.
In latest version of request, when bearer value is provided in auth, it should send a bearer authentication.
eg.
request.get('http://some.server.com/', {
'auth': {
'bearer': 'bearerToken'
}
});

Sorry 5 years too late.

options.header = { 'Authorization': 'Bearer ' + access_token }