[PR #8291] refactor: use verification table instead of jwt for email verification #7873

Open
opened 2026-03-13 13:51:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8291
Author: @jslno
Created: 3/2/2026
Status: 🔄 Open

Base: canaryHead: 03-02-2026/email-verification-table


📝 Commits (9)

  • 46ba2e4 refactor: use verification table instead of jwt for email verification
  • 16ed4b0 fix: correct expiration check
  • bd9e891 trigger ci
  • bd2987f chore: cleanup
  • 546bebb refactor: defer sending verification email until transaction comitted
  • 986bd72 chore: cleanup
  • 2f1f115 chore: fix linting
  • cd542de Merge branch 'canary' into 03-02-2026/email-verification-table
  • 420558b trigger ci

📊 Changes

7 files changed (+274 additions, -259 deletions)

View changed files

📝 packages/better-auth/src/api/routes/email-verification.test.ts (+3 -1)
📝 packages/better-auth/src/api/routes/email-verification.ts (+27 -33)
📝 packages/better-auth/src/api/routes/sign-in.ts (+1 -1)
📝 packages/better-auth/src/api/routes/sign-up.ts (+237 -218)
📝 packages/better-auth/src/api/routes/update-user.ts (+4 -4)
📝 packages/better-auth/src/oauth2/link-account.ts (+1 -1)
📝 packages/better-auth/src/plugins/username/index.ts (+1 -1)

📄 Description

Fixes #6573


🔄 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/8291 **Author:** [@jslno](https://github.com/jslno) **Created:** 3/2/2026 **Status:** 🔄 Open **Base:** `canary` ← **Head:** `03-02-2026/email-verification-table` --- ### 📝 Commits (9) - [`46ba2e4`](https://github.com/better-auth/better-auth/commit/46ba2e40cc65e8d0a7f15d675dde443d0e1e278b) refactor: use verification table instead of jwt for email verification - [`16ed4b0`](https://github.com/better-auth/better-auth/commit/16ed4b03ba9939f303d5103764eac3cc4b03aafe) fix: correct expiration check - [`bd9e891`](https://github.com/better-auth/better-auth/commit/bd9e8914522cb65e2e8f28e6bbdd18391986eab9) trigger ci - [`bd2987f`](https://github.com/better-auth/better-auth/commit/bd2987fdb7e1eab3a0174e322aaf75021bd2effa) chore: cleanup - [`546bebb`](https://github.com/better-auth/better-auth/commit/546bebb596bf31dab4f309044e1ee0125b7e9ea0) refactor: defer sending verification email until transaction comitted - [`986bd72`](https://github.com/better-auth/better-auth/commit/986bd7249e8d427e73bde654227506019ed2ecfc) chore: cleanup - [`2f1f115`](https://github.com/better-auth/better-auth/commit/2f1f1157ca4b03d4b1422adc831853d13ff18ce0) chore: fix linting - [`cd542de`](https://github.com/better-auth/better-auth/commit/cd542dea8e71370ab1ad2cb26862ee8fe541f088) Merge branch 'canary' into 03-02-2026/email-verification-table - [`420558b`](https://github.com/better-auth/better-auth/commit/420558beffa1bc358d7c15a566a9058ee6e15792) trigger ci ### 📊 Changes **7 files changed** (+274 additions, -259 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/email-verification.test.ts` (+3 -1) 📝 `packages/better-auth/src/api/routes/email-verification.ts` (+27 -33) 📝 `packages/better-auth/src/api/routes/sign-in.ts` (+1 -1) 📝 `packages/better-auth/src/api/routes/sign-up.ts` (+237 -218) 📝 `packages/better-auth/src/api/routes/update-user.ts` (+4 -4) 📝 `packages/better-auth/src/oauth2/link-account.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/username/index.ts` (+1 -1) </details> ### 📄 Description Fixes #6573 --- <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-03-13 13:51:51 -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#7873