Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Anonymous
4 years agoReuse a session token from environment, not from command line
The op signin command has an immensely useful functionality:
You can use the `--session` option with the `signin` command to reuse an
active token or to test whether a session has expired. ...
zcutlip
4 years agoDedicated Contributor
If I understand your question correctly, op already does this. E.g., in a bash, zsh, or similar environment, do:
console
$ eval $(op signin)
Then your session token is exported as an environment variable and is reused automatically (until it expires).
I'm suspect there are similar invocations for Windows and other shells.
Cheers,
Zach