[PR #7293] [MERGED] chore: update cloudflare fixture #15450

Closed
opened 2026-04-13 10:02:13 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7293
Author: @himself65
Created: 1/12/2026
Status: Merged
Merged: 1/12/2026
Merged by: @himself65

Base: canaryHead: himself65/2026/01/12/cloudflare


📝 Commits (2)

📊 Changes

9 files changed (+381 additions, -190 deletions)

View changed files

e2e/smoke/test/fixtures/cloudflare/drizzle/0000_clean_vector.sql (+0 -49)
e2e/smoke/test/fixtures/cloudflare/drizzle/0000_lively_paladin.sql (+74 -0)
📝 e2e/smoke/test/fixtures/cloudflare/drizzle/meta/0000_snapshot.json (+163 -12)
📝 e2e/smoke/test/fixtures/cloudflare/drizzle/meta/_journal.json (+2 -2)
📝 e2e/smoke/test/fixtures/cloudflare/package.json (+1 -0)
📝 e2e/smoke/test/fixtures/cloudflare/src/auth-schema.ts (+119 -40)
📝 e2e/smoke/test/fixtures/cloudflare/src/index.ts (+3 -0)
📝 e2e/smoke/test/fixtures/cloudflare/wrangler.json (+1 -1)
📝 pnpm-lock.yaml (+18 -86)

📄 Description

Related: https://github.com/better-auth/better-auth/issues/6613


Summary by cubic

Updates the Cloudflare E2E fixture to support SSO and JWT and syncs the D1 schema with current Better Auth requirements. Adds new tables, indexes, and millisecond timestamp defaults with on-update hooks.

  • New Features

    • Enable SSO and JWT plugins; wire up @better-auth/sso in the fixture.
    • Extend D1 schema with jwks and sso_provider tables, add key indexes (session.user_id, account.user_id, verification.identifier), and use ms timestamp defaults.
    • Refactor Drizzle schema with relations and indices; add new migration/snapshot and update wrangler DB id.
  • Dependencies

    • Add @better-auth/sso; update lockfile.

Written for commit f581bbe0a5. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7293 **Author:** [@himself65](https://github.com/himself65) **Created:** 1/12/2026 **Status:** ✅ Merged **Merged:** 1/12/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2026/01/12/cloudflare` --- ### 📝 Commits (2) - [`c5f4c0b`](https://github.com/better-auth/better-auth/commit/c5f4c0b2d53f28ea9ff9aafdcf302bece24a780f) chore: update Cloudflare fixture - [`f581bbe`](https://github.com/better-auth/better-auth/commit/f581bbe0a57aabc2db67ff37203a8caf9660491d) fix: id ### 📊 Changes **9 files changed** (+381 additions, -190 deletions) <details> <summary>View changed files</summary> ➖ `e2e/smoke/test/fixtures/cloudflare/drizzle/0000_clean_vector.sql` (+0 -49) ➕ `e2e/smoke/test/fixtures/cloudflare/drizzle/0000_lively_paladin.sql` (+74 -0) 📝 `e2e/smoke/test/fixtures/cloudflare/drizzle/meta/0000_snapshot.json` (+163 -12) 📝 `e2e/smoke/test/fixtures/cloudflare/drizzle/meta/_journal.json` (+2 -2) 📝 `e2e/smoke/test/fixtures/cloudflare/package.json` (+1 -0) 📝 `e2e/smoke/test/fixtures/cloudflare/src/auth-schema.ts` (+119 -40) 📝 `e2e/smoke/test/fixtures/cloudflare/src/index.ts` (+3 -0) 📝 `e2e/smoke/test/fixtures/cloudflare/wrangler.json` (+1 -1) 📝 `pnpm-lock.yaml` (+18 -86) </details> ### 📄 Description Related: https://github.com/better-auth/better-auth/issues/6613 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updates the Cloudflare E2E fixture to support SSO and JWT and syncs the D1 schema with current Better Auth requirements. Adds new tables, indexes, and millisecond timestamp defaults with on-update hooks. - **New Features** - Enable SSO and JWT plugins; wire up @better-auth/sso in the fixture. - Extend D1 schema with jwks and sso_provider tables, add key indexes (session.user_id, account.user_id, verification.identifier), and use ms timestamp defaults. - Refactor Drizzle schema with relations and indices; add new migration/snapshot and update wrangler DB id. - **Dependencies** - Add @better-auth/sso; update lockfile. <sup>Written for commit f581bbe0a57aabc2db67ff37203a8caf9660491d. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 10:02:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#15450