onepass

2.0.0 • Public • Published

onepass

Node.js library for communicating with 1Password and retrieving passwords.

const onepass = require('onepass')();
 
// Configure creds if you have them
onepass.auth.credentials(creds);
 
// Otherwise generate new creds
creds = onepass.auth.generateCredentials();
onepass.auth.credentials(creds);
 
// Promise API
onepass.password('http://example.com')
       .then(password => ...)
       .catch(err => ...);
 
// Node callback API
onepass.password('http://example.com', (err, pass) => {
  ...
})

Configuring 1Password5 to work with onepass

If you're using 1Password 5+, or you run into this screen:

Cannot Fill Item in Web Browser

This causes a problem for onepass as it isn't a "trusted browser" per se. In order to fix this issue, you need to do the following:

  1. Open up 1Password's preferences
  2. Find the Advanced settings tab.
  3. Uncheck Verify browser code signature.

Uncheck "Verify browser code signature"

Acknowledgements

A big thank you Reuven V. Gonzales and his work on sudolikeaboss. onepass is largely based on sudolikeaboss.

Another big thank you to AgileBits for bringing us 1Password.

Readme

Keywords

Package Sidebar

Install

npm i onepass

Weekly Downloads

2

Version

2.0.0

License

MIT

Last publish

Collaborators

  • sibartlett