Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
4 years ago[CLI2] `whoami` command with `--session` and `--account` errors out and ignores `--session`
Hi there!
I was using something like this to check whether a session was still valid for a specific account:
op whoami --session $SESSION --account $ACCOUNT
if [ $? = 0 ]
then
echo...
Former Member
4 years agoHi @vitorqb , thank you for notifying us about this!
Indeed, it seems to be a bug, that op whoami
ignores the --session
flag.
We have opened a ticket in our internal tracker, looking to get this fixed. We'll keep you updated with any developments related to this.
Let us know if you have any more feedback for us!
Best,
Horia