Support for TOTP pin code
I'm working on a 1Password Github Action - https://github.com/RobotsAndPencils/1password-action and one of the options I'd like to include is the ability to get the pin code of an OTP.
Currently in v1.8.0 the json that gets returned doesn't include this. It only has a "n":"TOTP_990EB3DFF7FD4A42B1150FF47A8A93F3"
(as well as the value behind the OTP field.
I'm assuming that hash(?) is what the UI generates the expiring TOTP pin code. Could the cli return this? Or perhaps have a function on the cli, that if I pass in that n
value, it gives me a pin code?
edit: I do see totp
option in https://support.1password.com/command-line/#manage-objects but not sure how to use that when getting items?
Thank a bunch for a great tool
-Matt
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Sync Type: Not Provided
Comments
-
Ah well, turns out if dig deeper this is already done.
op get totp $UUID
Sorry for the troubles.
0 -
Hey @mattkiazyk ,
I'm glad to see you've managed to find the solution in your reference guide :)We're here if you have any further questions.
0 -
Yeah thanks! My only suggestion would be to possibly have a quick example for
totp
in the reference guide.0 -
Hey @mattkiazyk ,
I think there already is: https://support.1password.com/command-line-reference/#get-totpLet me know if you meant something else.
0