[PR #1976] [CLOSED] feat: support use number id #4098

Closed
opened 2026-03-13 11:32:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1976
Author: @Bekacru
Created: 3/24/2025
Status: Closed

Base: mainHead: feat/use-number-id


📝 Commits (4)

📊 Changes

3 files changed (+53 additions, -7 deletions)

View changed files

📝 packages/better-auth/src/adapters/prisma-adapter/prisma-adapter.ts (+35 -6)
📝 packages/better-auth/src/adapters/utils.ts (+9 -1)
📝 packages/better-auth/src/types/options.ts (+9 -0)

📄 Description

Add the useNumberId option under advanced to convert id fields referenced in where clauses and similar cases into numbers.

  • prisma support
  • drizzle support
  • kysley support
  • mongodb support
  • documentation

🔄 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/1976 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 3/24/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/use-number-id` --- ### 📝 Commits (4) - [`124c636`](https://github.com/better-auth/better-auth/commit/124c636a77c5f4d989b2b1e4aef2b429374286a4) feat: support use number id - [`21e8d65`](https://github.com/better-auth/better-auth/commit/21e8d6594b754016afb5e53ce03fcda3e4719c34) chore: fix buidl - [`22d89a8`](https://github.com/better-auth/better-auth/commit/22d89a8836f6a335f756e8bec948d73be807def2) revert converting reference fields - [`79bc59b`](https://github.com/better-auth/better-auth/commit/79bc59bd496deb3ebb7b26d0dadee2ec29a3cd29) fix utils ### 📊 Changes **3 files changed** (+53 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/adapters/prisma-adapter/prisma-adapter.ts` (+35 -6) 📝 `packages/better-auth/src/adapters/utils.ts` (+9 -1) 📝 `packages/better-auth/src/types/options.ts` (+9 -0) </details> ### 📄 Description Add the` useNumberId` option under `advanced` to convert id fields referenced in where clauses and similar cases into numbers. - [x] prisma support - [ ] drizzle support - [ ] kysley support - [ ] mongodb support - [ ] documentation --- <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 11:32:34 -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#4098