session token returned by `op signin --raw` is invalid
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
-
Hi @brunogirin ! This was on issue with v0.9.2, which only understood
--session=<token>
but not--session <token>
. This has been fixed in v0.9.3.0 -
I can confirm that it's fixed with v0.9.3. Thanks @felix_1p !
0 -
You are very welcome!
0