The provided text appears to be a **changelog** for a software release, specifically for **Logto**, an open-source identity platform. The content is duplicated, with the same information appearing twice, likely due to a formatting or copy-paste error.

Here's a **cleaned-up and structured summary** of the key points from the changelog, focusing on the **v1.44.0 release**:

---

### 🚀 **Logto v1.44.0 Release Highlights**

This release introduces several **security, usability, and developer experience improvements**, with a strong focus on **self-hosting**, **user migration**, and **bot protection**.

---

### 🔑 **Key New Features & Enhancements**

#### 1. **MFA Trusted Devices**
- Users can now **trust their browser** after completing MFA to **skip repeated MFA prompts**.
- Admins can:
  - Set trust duration (1–365 days) at the tenant level.
  - Restrict trusted devices per organization.
  - Manage devices via **Console**, **Account Center**, or **APIs**.
- Webhooks and audit logs support `TrustedDevice.Created` and `TrustedDevice.Used`.

> ⚠️ Note: Trusted devices only skip MFA, not identity verification or account recovery.

#### 2. **Keep Existing User IDs When Migrating**
- User IDs now support up to **128 characters**.
- Self-hosted Logto allows custom `id` on user creation (e.g., `auth0|abc123`).
- Users can be looked up by **external identity** (e.g., social or SSO provider ID).
- **Only available in Logto OSS**.

#### 3. **Cap – Self-Hosted CAPTCHA**
- Introduces **Cap**, an open-source, self-hosted CAPTCHA solution.
- Ideal 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. **Authentication Policies for SAML Applications**
- **Session reuse**: Allow SAML apps to reuse existing Logto sessions.
- **Signed authentication requests**: Enforce signature verification for SAML requests.
- **Actual authentication time**: SAML assertions now include the real authentication time.

#### 5. **`theme` Authentication Parameter**
- Pass `theme=light` or `theme=dark` in authentication requests to **match your app’s theme**.
- Overrides OS-level dark/light mode settings.
- Applies across the entire sign-in flow.

#### 6. **Refresh Tokens for Dynamic App Clients**
- Enables **refresh tokens** for **dynamic apps** (e.g., ChatGPT, Codex) using **CIMD**.
- Only applies when requesting `offline_access` and **no consent prompt** is sent.
- **Experimental** and off by default.

#### 7. **Management API SDK (`@logto/api`) Improvements**
- **Pagination iterator**: Use `paginate()` for async iteration over paginated endpoints.
- **Reliability**: Better handling of redirects, timeouts, and token caching.
- **Ergonomics**: Lowercase methods (`get()`, `post()`), normalized URLs, and object-style config.

---

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

#### ✅ **Sign-in Experience**
- **Browser auto-translation**: Now disabled via `translate="no"` and `<meta name="google" content="notranslate">` to prevent blank pages.
- **Social account linking**: Fixed issue where linking failed due to conflicting identifiers.

#### ✅ **Enterprise SSO & OIDC**
- **Trailing slash in OIDC issuers**: `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 messages**: Fall back to base language if regional language is unavailable.

#### ✅ **Console**
- **Webhook test results**: Now stored per webhook, preventing cross-contamination.

---

### 🧰 **Connectors Updates**

| Connector | Update |
|--------|--------|
| **Apple** | Identifier field now labeled **Services ID**; setup instructions cover Apple Developer portal (no Xcode needed). Troubleshooting includes `invalid_client` and `invalid_request`. |
| **DingTalk (web)** | `corpId` from token response is now preserved in `rawData`. |
| **Twilio SMS** | New optional `apiHost` config to send via non-default regions (e.g., `api.twilio.com`). |

---

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

1. **Database Migration Required**
   - Two schema changes:
     - Add `authnRequestConfig` column to SAML app configs.
     - Widen `users.id` and all referencing columns to `varchar(128)`.
   - Run:  
     ```bash
     npm run alteration deploy  # in @logto/cli/core
     # or
     logto db alteration deploy
     ```
   - [Upgrade Guide](https://docs.logto.io/logto-oss/upgrading-oss-version)

2. **Rolling Back User ID Alteration**
   - Fails if any stored user ID exceeds **12 or 21 characters**.

3. **Custom User IDs**
   - Only supported in **self-hosted Logto** (not in Logto Cloud).

4. **Cap Requires Own Instance**
   - Must run a **publicly reachable Cap Standalone** instance.

5. **Database Seeding**
   - Now checks for leftover PostgreSQL roles before seeding.
   - Reports conflicts and explains why dropping the DB didn’t remove them.

---

### 🙏 **Contributors**
Huge thanks to the community for their contributions:

| Contributor | Contribution |
|-----------|--------------|
| [@JunWang666](https://github.com/JunWang666) | User lookup by external identity |
| [@Igor-Techsee](https://github.com/Igor-Techsee) | SAML authentication policies |
| [@konlanx](https://github.com/konlanx) | `theme` authentication parameter |
| [@Kathircpe](https://github.com/Kathircpe) | reCAPTCHA Enterprise score threshold |
| [@nicolaj0](https://github.com/nicolaj0) | Browser auto-translation opt-out |
| [@Tyagiquamar](https://github.com/Tyagiquamar) | OIDC `none` prompt validation & DingTalk `corpId` |
| [@ryanchou1994](https://github.com/ryanchou1994) | PostgreSQL role check before seeding |
| [@toyeshhm](https://github.com/toyeshhm) | Kakao & Naver connector README fixes |
| [@darcyYe](https://github.com/darcyYe) | Per-webhook test results |

---

### 🔗 **Full Changelog**
- [Compare v1.43.0 → v1.44.0](https://github.com/logto-io/logto/compare/v1.43.0...v1.44.0)

---

### 📸 **Visual Summary**
> A changelog image is referenced in the original text, but not displayed here. It likely shows a visual overview of the release highlights.

---

### ✅ **Summary**
This release significantly enhances **security**, **user experience**, and **developer flexibility**, especially for **self-hosted deployments**. Key improvements include:
- **MFA trusted devices** for smoother user experience.
- **Longer user IDs** and **custom ID support** for migration.
- **Cap** for reliable bot protection.
- **SAML and OIDC policy improvements**.
- **Better API SDKs** and **error handling**.

---

Let me know if you'd like a **PDF version**, **release notes summary**, or **upgrade checklist** for this release!