[GH-ISSUE #8173] deleteUser don't respect freshAge #19644

Closed
opened 2026-04-15 18:55:46 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @DimitarY on GitHub (Feb 26, 2026).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/8173

Originally assigned to: @bytaesu on GitHub.

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

  1. Create a project with
"better-auth": "^1.4.19",
"next": "^16.1.6",
  1. Create acount and try to use deleteUser to delete it after the freshAge expires without providing a password.

Current vs. Expected behavior

Current:
deleteUser doesn't respect freshAge
Expected:
The delete operation should respect the freshAge per the documentation

What version of Better Auth are you using?

1.4.19

System info

N/A

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

Backend, Documentation

Auth config (if applicable)

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

Additional context

No response

Originally created by @DimitarY on GitHub (Feb 26, 2026). Original GitHub issue: https://github.com/better-auth/better-auth/issues/8173 Originally assigned to: @bytaesu on GitHub. ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce 1. Create a project with ```json "better-auth": "^1.4.19", "next": "^16.1.6", ``` 2. Create acount and try to use deleteUser to delete it after the freshAge expires without providing a password. ### Current vs. Expected behavior Current: deleteUser doesn't respect freshAge Expected: The delete operation should respect the freshAge per the [documentation](https://www.better-auth.com/docs/concepts/users-accounts#authentication-requirements) ### What version of Better Auth are you using? 1.4.19 ### System info ```bash N/A ``` ### Which area(s) are affected? (Select all that apply) Backend, 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 lockedbug labels 2026-04-15 18:55:46 -05:00
Author
Owner

@bytaesu commented on GitHub (Feb 26, 2026):

Hi @DimitarY, I'll look into this 🙂

<!-- gh-comment-id:3968416094 --> @bytaesu commented on GitHub (Feb 26, 2026): Hi @DimitarY, I'll look into this 🙂
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#19644