unifi_protect_auth_login
Force a fresh UniFi Protect console login by providing a time-based one-time password (TOTP) to complete two-factor authentication and replace the cached session.
Instructions
Force a fresh login to the console, replacing any cached session. Normally unnecessary — the server logs in on demand and re-authenticates automatically on a 401. Use it to supply a two-factor code, which cannot be done unattended: the code is single-use and expires in about 30 seconds, so it is passed here once and the resulting session is then cached and reused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| totp | No | Current code from your authenticator app. Omit if the account has no 2FA. |