Udon is under active development. Documentation not final.
udonudon
Auth

Enable two-factor

Confirms the pending TOTP setup with a code from the authenticator and turns two-factor on, returning one-time recovery codes. Requires the **viewer** role.

POST
/api/auth/2fa/enable

Authorization

udon_session<token>

In: cookie

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/auth/2fa/enable" \  -H "Content-Type: application/json" \  -d '{    "code": "string"  }'
{  "recoveryCodes": [    "string"  ]}

Ask AI

Answers from Udon's documentation.

Ask how to install Udon, run containers, or share folders.