get_totp_code
Get the current 6-digit TOTP code for a vault login item, along with the remaining seconds in the period and the algorithm, so you know whether to use it immediately or wait for a fresh code.
Instructions
Get the current TOTP code for a vault login item with TOTP configured. Returns the 6-digit code, the remaining seconds in the current period, and the algorithm. Use the remaining_seconds field to decide whether to use the code immediately or wait for a fresh period.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact item name (case-sensitive) of a vault login item with TOTP configured. |