Skip to content
This repository has been archived by the owner on Aug 14, 2018. It is now read-only.
/ onepass Public archive

Node.js library for retrieving passwords from 1Password.

License

Notifications You must be signed in to change notification settings

sibartlett/onepass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

onepass

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

Note: You may need to set the process title.

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.

About

Node.js library for retrieving passwords from 1Password.

Resources

License

Stars

Watchers

Forks

Packages

No packages published