Forum Discussion
Session is on tabs scope. How can i keep the session between tabs?
Hey @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