Skip to content

Conversation

@bharxhav
Copy link

Asserts future issues before release, basis: #162

Redundant table definition is being generated by better-auth/better-auth. To maintain single source of truth, no manual change was done to fix the actual issue.

A test is being proposed to catch bad table nomenclature.

* Initial plan

* Fix redundant ratelimit schema declaration

Co-authored-by: bharxhav <70275374+bharxhav@users.noreply.github.com>

* Add comment documenting the duplicate rateLimit issue

Co-authored-by: bharxhav <70275374+bharxhav@users.noreply.github.com>

* Revert manual schema fix and add warning test for duplicate table names

Co-authored-by: bharxhav <70275374+bharxhav@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bharxhav <70275374+bharxhav@users.noreply.github.com>
@erquhart
Copy link
Collaborator

Thanks for this! I love a good test, but this really is a core Better Auth issue, I don't want to use tests here to ensure against upstream bugs, as there's no good logical limit to that.

It looks like the issue in source is here: https://github.com/better-auth/better-auth/blob/d90e1f2eb75b1cafb1211a03e188345d53e53854/packages/better-auth/src/adapters/adapter-factory/index.ts#L1002-L1003

@erquhart
Copy link
Collaborator

erquhart commented Nov 13, 2025

I will go ahead and drop the redundant definition at least, though. Thanks again for calling it out!

@erquhart erquhart closed this Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants