You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2025. It is now read-only.
I love using this program. However, when 2FA is turned on, the script crashes.
When running the OnePassword Python wrapper, I'm getting an error, requesting the 6-digit authentication code from onepassword import OnePassword from api_keys import one_password as secret import json op = OnePassword(secret=secret)
When you use the CLI without the wrapper, it remembers your account (after the first time you sign in) so you don't need to provide it with your Secret Key or organization address. You can also sign in using a shortname. For example: op signing personal and it will only ask for your Master Password.
I think what happens here is that every time you run the wrapper you are starting a brand new login session (e.g. it doesn't remember your credentials like when you sign in without the wrapper) so it asks you for your 2FA code every time. If you can get it to use a shortname to signin so you won't require the Secret Key and domain, that might do the trick. Perhaps this will help: https://support.1password.com/command-line-reference/#signin
Thanks for considering updating this. I have turned 2FA back on and am not using the script for now.