add_token
Add a new OTP token to generate one-time passwords for authentication. Configure TOTP or HOTP tokens with custom settings like issuer, account, algorithm, and period.
Instructions
Add a new OTP token.
Args:
secret: Base32 encoded secret key
issuer: Issuer of the OTP token
account: Accout for the OTP token
type: Type of the OTP token (TOTP or HOTP) (default is TOTP)
algorithm: Hashing algorithm to use (SHA1, SHA256, SHA512, MD5) (default is SHA1)
counter: Counter value for HOTP tokens (default is 0)
digits: Number of digits in the OTP code (default is 6)
period: Time period for TOTP tokens in seconds (default is 30)Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret | Yes | Secret key Base32 | |
| issuer | Yes | Issuer of the OTP token | |
| account | Yes | Account for the OTP token | |
| type | No | TOTP | |
| algorithm | No | SHA1 | |
| counter | No | Counter value for HOTP tokens | |
| digits | No | Number of digits in the OTP code | |
| period | No | Time period for TOTP tokens in seconds |