This PR allows using hypens in the subdomain name (e.g. "team-foo") and loading a session token from the OPSESSION environment variable.
Dashes are simply converted to underscores so that the looked up environment variable name becomes OP_SESSION_team_foo mimicking the behavior of the 1password op cli.
Hyphens (-) in a subdomain will be changed to an underscore (_).
This PR allows using hypens in the subdomain name (e.g. "team-foo") and loading a session token from the OPSESSION environment variable.
Dashes are simply converted to underscores so that the looked up environment variable name becomes
OP_SESSION_team_foo
mimicking the behavior of the 1passwordop
cli.(source: https://support.1password.com/command-line/#sign-in-or-out)