Skip to content
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

Document supplying credentials #80

Closed
addywaddy opened this issue Jul 13, 2017 · 2 comments
Closed

Document supplying credentials #80

addywaddy opened this issue Jul 13, 2017 · 2 comments

Comments

@addywaddy
Copy link

It's only a small thing but I had to look at the python implementation and connection/index.js to realise that Connection takes an optional second argument for supplying credentials as an object. Would be great if this could be documented as well.

@TimDaub
Copy link
Contributor

TimDaub commented Jul 13, 2017

Absolutely right. We'll be setting up docs for the driver soon.
In the mean time, headers can be passed to a connection like this:

const driver = require('bigchaindb-driver')
let bdb = new driver.Connection('bigchaindbURL', { 
    abc: '123',
})

@TimDaub
Copy link
Contributor

TimDaub commented Sep 26, 2017

@TimDaub TimDaub closed this as completed Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants