Skip to content

Commit

Permalink
Update web3-providers readme
Browse files Browse the repository at this point in the history
  • Loading branch information
boomfly authored May 30, 2019
1 parent e485119 commit 64613ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web3-providers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ Instead of setting a authorization header you could also define the credentials

```js
import {WebsocketProvider} from 'web3-providers';
const credentials = Buffer.from('username:password').toString('base64')
const options = {
timeout: 30000,
headers: {
authorization: 'Basic username:password'
authorization: `Basic ${credentials}`
}
};

Expand Down

0 comments on commit 64613ea

Please sign in to comment.