Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Former Member
4 years agoSession is on tabs scope. How can i keep the session between tabs?
Steps to reproduce
Install CLI with brew
sign in with eval $(op signin)
Open new tab in a terminal, run op whoami
What happened?
When I follow the steps that I described, I get the f...
Former Member
4 years agoHey @prrrcl , thank you for reaching out to us!
The CLI has been designed in this way in order to make sure the authentication is scoped exclusively to where the user has made the explicit choice to sign in. Had it been scoped globally, a malicious process, present in your system, could use the session token to access your 1Password secrets.
If you really want to use the same token between different tabs, you could use op signin --raw to produce a session token, and then export it in the scope of any environment (i.e. terminal tabs, in your case) where you want to use the account.
This being said, have you heard of biometric authentication, which came with the release of CLI 2.0?
https://developer.1password.com/docs/cli/get-started#sign-in
This offers a much improved user experience in terms of the signing in workflow. We'd love to hear your thoughts about that!
Thanks,
Horia