The provided text appears to be a **changelog** for **Logto**, an open-source identity platform, detailing updates and improvements in a specific release (likely version 1.44.0). The content is duplicated, with the second instance being a slightly more structured version of the first.

Here's a **summary and analysis** of the key points:

---

### 🚀 **Major Highlights (New Features & Enhancements)**

1. **MFA Trusted Devices**
   - Users can now **trust their browser** after completing MFA, skipping repeated prompts.
   - Admins can set **trust duration (1–365 days)**, restrict it per organization, and manage devices via Console, Account Center, or APIs.
   - Webhooks and audit logs support tracking of trusted device events.

2. **Longer User IDs & Migration Support**
   - User IDs now support up to **128 characters**, replacing previous limits of 12 or 21.
   - Self-hosted Logto allows **custom user IDs** during creation (e.g., `auth0|abc123`), aiding migration.
   - New API endpoint to **look up users by external identity** (e.g., social or SSO identifiers).

3. **Cap – Self-Hosted CAPTCHA**
   - Introduces **Cap**, an open-source, self-hosted CAPTCHA solution for regions where Cloudflare Turnstile or Google reCAPTCHA are unreliable.
   - Requires a publicly reachable Cap Standalone instance.
   - **Content Security Policy (CSP)** is relaxed only when Cap is active.

4. **reCAPTCHA Enterprise Score Threshold**
   - Admins can now **configure a minimum score (0.0–1.0)** for reCAPTCHA Enterprise verification (applies to invisible mode only).

5. **Authentication Policies for SAML Apps**
   - **Session reuse**: Allow SAML apps to reuse existing Logto sessions.
   - **Signed authentication requests**: Enforce signature verification for HTTP-POST and HTTP-Redirect.
   - **Actual authentication time**: SAML assertions now include the real authentication timestamp.

6. **`theme` Authentication Parameter**
   - Pass `theme=light` or `theme=dark` to override the sign-in experience theme, syncing with app-level theme toggles.

7. **Refresh Tokens for Dynamic App Clients**
   - Enables **refresh tokens** for dynamic apps (e.g., ChatGPT, Codex) using CIMD, by adding `prompt=consent` when requesting `offline_access`.
   - This prevents users from needing to re-authenticate every time the access token expires.

8. **Management API SDK (`@logto/api`) Improvements**
   - **Pagination iterator**: `paginate()` returns a typed async iterator for easier handling of paginated responses.
   - **Reliability**: Better handling of token requests (abort signals, timeouts, shared token fetch).
   - **Ergonomics**: Lowercase methods (`get()`, `post()`), normalized URLs, and object-style configuration.

---

### 🐛 **Bug Fixes & Stability Improvements**

- **Browser Auto-Translation**: Fixed blank page issue during sign-in by adding `translate="no"` and `<meta name="google" content="notranslate">`.
- **Social Account Linking**: Improved UX when linking accounts with conflicting identifiers.
- **OIDC SSO Issuer Trailing Slash**: `https://idp.example.com/` and `https://idp.example.com` now resolve to the same discovery URL.
- **`none` Prompt Validation**: Prevents combining `none` with other prompt values.
- **API Error Language Fallback**: Falls back to base language if regional language is unavailable.
- **Webhook Test Results**: Now stored per webhook, preventing cross-contamination.

---

### 🔧 **Connectors & Integrations**

- **Apple**: 
  - Identifier field renamed to **"Services ID"**.
  - Setup instructions now cover Apple Developer portal (no Xcode required).
  - Troubleshooting includes `invalid_client` and `invalid_request`, including Apple’s 24-hour cache.
- **DingTalk (web)**:
  - `corpId` from token response is now preserved in `rawData`.
- **Twilio SMS**:
  - New optional **API host configuration** to send via non-default regions.

---

### 🛠️ **Self-Hosting & OSS Notes**

- **Database Migration Required**:
  - Two schema changes:
    1. Adds `authnRequestConfig` column to SAML app configs.
    2. Widens `users.id` and related columns to `varchar(128)`.
  - Run `npm run alteration deploy` or `logto db alteration deploy` **before starting the new version**.
- **Rolling Back User ID Alteration**:
  - Fails if any stored user ID exceeds the old limit (12 or 21 chars).
- **Custom User IDs**:
  - Only available in **self-hosted Logto** (not in Logto Cloud).
- **Cap Requirements**:
  - Requires a **publicly reachable Cap Standalone instance**.
  - CSP is relaxed only when Cap is active.
- **Database Seeding**:
  - Now checks for leftover PostgreSQL roles before seeding.
  - If conflicts exist, it explains why dropping the DB didn’t remove them and guides cleanup.

---

### 🙌 **Contributors**
Thanks to the community for their contributions:
- **@JunWang666**: User lookup by external identity.
- **@Igor-Techsee**: SAML authentication policies.
- **@konlanx**: `theme` parameter.
- **@Kathircpe**: reCAPTCHA score threshold.
- **@nicolaj0**: Browser auto-translation opt-out.
- **@Tyagiquamar**: `none` prompt validation & DingTalk `corpId`.
- **@ryanchou1994**: PostgreSQL role check.
- **@toyeshhm**: Connector README fixes.
- **@darcyYe**: Per-webhook test results.

---

### 📌 **Final Notes**
- The release focuses on **improving user experience**, **enhancing security**, and **increasing flexibility** for self-hosted deployments.
- Key themes: **migration support**, **self-hosting capabilities**, **better error handling**, and **community-driven development**.
- The **full changelog** is available at: [https://github.com/logto-io/logto/compare/v1.43.0...v1.44.0](https://github.com/logto-io/logto/compare/v1.43.0...v1.44.0)

---

Let me know if you'd like a **concise version** for documentation, a **release announcement**, or a **technical deep dive** on any specific feature!