{
  "manifest": {
    "spekkr": 1,
    "id": "kato/two-factor",
    "name": "Two-factor sign-in",
    "summary": "A second sign-in step with authenticator-app codes and recovery codes, added to the sign-in an app already has.",
    "keywords": [
      "2fa",
      "mfa",
      "totp",
      "otp",
      "one-time password",
      "security",
      "login",
      "log in"
    ],
    "kind": "app part",
    "version": "0.1.2",
    "author": {
      "id": "kato",
      "name": "Kato"
    },
    "targets": {
      "platforms": [
        "web",
        "backend"
      ]
    },
    "customize": {
      "settings": [
        {
          "key": "issuer_name",
          "label": "Name shown in authenticator apps",
          "default": "Acme",
          "help": "Usually the app's name."
        }
      ],
      "options": [
        {
          "key": "remember_device",
          "label": "Remember a device for 30 days",
          "default": false,
          "help": "A person can mark a device as trusted and skip the code there."
        },
        {
          "key": "required_for_all",
          "label": "Required for every account",
          "default": false,
          "help": "An account without two-factor must set it up before it can use the app."
        }
      ],
      "swaps": [
        {
          "key": "database",
          "label": "Database",
          "choices": [
            "postgres",
            "sqlite"
          ],
          "default": "postgres"
        }
      ]
    },
    "files": [
      {
        "path": "spec.md",
        "about": "Requirements and acceptance criteria."
      },
      {
        "path": "design.md",
        "about": "Data model, rules and flows."
      },
      {
        "path": "tasks.md",
        "about": "Build tasks in order, each with a check."
      }
    ],
    "needs": {
      "accounts": [
        "An email-sending service for security notices"
      ],
      "permissions": [
        "shell",
        "network"
      ]
    },
    "demo": {
      "screenshots": [
        "shots/home.png",
        "shots/setup.png",
        "shots/challenge.png",
        "shots/account.png"
      ]
    },
    "safety": {
      "secrets": [
        "DATABASE_URL",
        "TOTP_ENCRYPTION_KEY",
        "EMAIL_API_KEY"
      ]
    },
    "lineage": {},
    "changelog": [
      {
        "version": "0.1.2",
        "date": "2026-11-15",
        "note": "Names what it builds."
      },
      {
        "version": "0.1.1",
        "date": "2026-11-14",
        "note": "Says \"person\" where it said \"buyer\"."
      },
      {
        "version": "0.1.0",
        "date": "2026-11-14",
        "note": "Moved from dwrtz/two-factor."
      }
    ]
  },
  "links": {
    "page": "./",
    "bundle": "bundle.tar.gz",
    "files": {
      "design.md": "files/design.md",
      "shots/account.png": "files/shots/account.png",
      "shots/challenge.png": "files/shots/challenge.png",
      "shots/home.png": "files/shots/home.png",
      "shots/setup.png": "files/shots/setup.png",
      "spec.md": "files/spec.md",
      "tasks.md": "files/tasks.md"
    }
  },
  "publishedBy": "kato",
  "uploaded": {
    "shots/account.png": {
      "bytes": 109497,
      "type": "image/png"
    },
    "shots/challenge.png": {
      "bytes": 96706,
      "type": "image/png"
    },
    "shots/home.png": {
      "bytes": 156523,
      "type": "image/png"
    },
    "shots/setup.png": {
      "bytes": 102377,
      "type": "image/png"
    }
  }
}
