UniFi Protect: Auth Login
unifi_protect_auth_loginForces a fresh UniFi Protect console login to replace a cached session and accepts a one-time 2FA/TOTP code, then caches the authenticated session for reuse.
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. |