[GH-ISSUE #2469] generateId is documented as deprecated, but it is actually not enforced anymore #9206

Closed
opened 2026-04-13 04:36:07 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @grmkris on GitHub (Apr 28, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/2469

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

Image

it is there, marked as deprecated, but it is not being used by better-auth at all internally...
i learned about it when my db started throwing errors for wrong ID shape after i upgraded..

this is not really an "issue", but worth mentioning it on github so i can save some time for other people

Current vs. Expected behavior

generateId should be enforced, even if marked as deprecated

What version of Better Auth are you using?

1.2.7

Provide environment information

linux

Which area(s) are affected? (Select all that apply)

Documentation

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  emailAndPassword: {  
    enabled: true
  },
});

Additional context

No response

Originally created by @grmkris on GitHub (Apr 28, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/2469 ### Is this suited for github? - [ ] Yes, this is suited for github ### To Reproduce <img width="793" alt="Image" src="https://github.com/user-attachments/assets/ad5b425f-0e25-424e-9ac3-2142915197a8" /> it is there, marked as deprecated, but it is not being used by better-auth at all internally... i learned about it when my db started throwing errors for wrong ID shape after i upgraded.. this is not really an "issue", but worth mentioning it on github so i can save some time for other people ### Current vs. Expected behavior generateId should be enforced, even if marked as deprecated ### What version of Better Auth are you using? 1.2.7 ### Provide environment information ```bash linux ``` ### Which area(s) are affected? (Select all that apply) Documentation ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ emailAndPassword: { enabled: true }, }); ``` ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 04:36:07 -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#9206