session token returned by `op signin --raw` is invalid

Options
brunogirin
brunogirin
Community Member

I'm experimenting with the CLI tools to integrate inside a Node.js script. In order to do that, I'm trying to signin with the --raw option so that I can retrieve the session token and pass it to subsequent commands. When I do this, I get the following error:

op --session list vaults
[LOG] 2020/03/20 16:34:16 (ERROR) Invalid session token

I tried putting the token in single or double quotes just in case. When I signin normally, I have no problem.

Steps to reproduce:
1. Signin to the 1password account with the raw option: op signin --raw
2. Get a list of vaults: op --session list vaults

With the same credentials, the following works fine

  • eval $(op signin )
  • op list vaults

Am I doing something wrong?


1Password Version: 0.9.2
Extension Version: Not Provided
OS Version: Ubuntu 18.04.3 LTS in Windows Subsystem for Linux
Sync Type: Not Provided

Comments

This discussion has been closed.