iriscouch / browser-request

Browser library compatible with Node.js request package
Apache License 2.0
360 stars 102 forks source link

Not support bearer authentication #53

Open SabrinaZ opened 9 years ago

SabrinaZ commented 9 years ago

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' } });

EddieOne commented 4 years ago

Sorry 5 years too late.

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