op signout does not work

Currently my device and session are tied to my main account for CLI. I'm trying to switch my default account to a secondary service account to run scripts. Whenever I try to run scripts using a service account, I get an error that 1Pass CLI is already tied to my main account. I tried running op signout --account shorthand --forget, but that does not work. When I run op forget shorthand, it tells me to sign out first. When I try to run op signout or op signout --account shorthand, it doesn't actually sign out.


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Windows 11

Comments

  • Justin.Yoon_1PJustin.Yoon_1P

    Team Member
    edited December 2021

    Hey @sazquatch

    I think I may be able to offer some assistance.

    I am surprised that you are getting an error when trying to sign into your (secondary) service account while signed into the primary account. Our CLI can handle switching the "active" account by running op signin <secondaryAccount>. At first glance, it sounds like a bug and I'd like to help resolve it.

    I am having trouble replicating this issue, as I've just tried the following:

    1. Sign into primary account - op signin <primaryShorthand>
    2. Perform some op operations to confirm, such as. op get account
    3. Sign into secondary account - op signin <secondaryShorthand>
    4. Perform some op operations to confirm
    5. Sign out of secondary account via op signout --forget

    Would you be able to post the exact error output when trying to sign into the secondary account?

    Also, when you mention running commands like op signout --account shorthand --forget, is shorthand the shorthand's name? You can confirm that an account with such shorthand exists by running op signin --list to see a list of accounts you've successfully signed onto op with.

  • Would you be able to post the exact error output when trying to sign into the secondary account?

    There is no error. Just returns nothing.

  • Hey @sazquatch ,

    Thanks for the quick update.

    Would you be able to confirm whether or not the signin steps work for you?

    1. Sign into primary user
    2. Confirm that you are logged into primary user by calling op get user --me and checking the email or name
    3. Sign into the service account user
    4. Confirm or deny that your sign-in has not been switched to the service account user by calling op get user --me and checking the email or name
  • I was able to fix this by deleting my config file.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file