op signin with TOTP - powershell [beginner]
Hi!
I am playing around with op cli to automate some login in.
I have a working automatic signin script, that retrieves all login type items and ends.
Lately I had to migrate my account to one with Mandatory 2FA (which is good), but my script can't run since there is no easy way, to input Master password and TOTP after, and sign in.
Is there an easy way, in Powershell, to have 2 Variables, $Mpass, $totp to signin and be able to get session key and work like normal?
(I can prompt for totp before command)
Snippet of the script for reference:
$Session_Token = Invoke-Expression "echo $MPass | op.exe signin domain --raw"
1Password Version: 1.11.2
Extension Version: Not Provided
OS Version: Windows 10
