1.2.0 introduced client type errors #762

Closed
opened 2026-03-13 08:03:21 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @alexwork1611 on GitHub (Mar 2, 2025).

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

Hello,

First of all, thank you so much for this amazing library! I'm very thankful for the work the maintainers are putting in.

So I just updated my project's better-auth dependency to 1.2.1 and I got four errors after I checked the types for the whole project (whereas before I had none). The errors pertain to the auth client. Here is an example:

For the client defined as follows...

Image

In 1.2.1, I get this error:

Image

And in 1.1.21, I get nothing:

Image

Any ideas what could be the issue?

Thanks!

Current vs. Expected behavior

Type errors vs. no errors.

What version of Better Auth are you using?

1.2.1

Provide environment information

Irrelevant

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

Types

Auth config (if applicable)

Irrelevant (client only)

Additional context

No response

Originally created by @alexwork1611 on GitHub (Mar 2, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce Hello, First of all, thank you so much for this amazing library! I'm very thankful for the work the maintainers are putting in. So I just updated my project's `better-auth` dependency to 1.2.1 and I got four errors after I checked the types for the whole project (whereas before I had none). The errors pertain to the auth client. Here is an example: For the client defined as follows... ![Image](https://github.com/user-attachments/assets/4f1769c4-665a-479f-aae5-d6b81f1333aa) In 1.2.1, I get this error: ![Image](https://github.com/user-attachments/assets/18f8ef89-9c2f-482f-8a88-307164fad1de) And in 1.1.21, I get nothing: ![Image](https://github.com/user-attachments/assets/addd1324-48f0-4b6e-9d1b-6421ab085d98) Any ideas what could be the issue? Thanks! ### Current vs. Expected behavior Type errors vs. no errors. ### What version of Better Auth are you using? 1.2.1 ### Provide environment information ```bash Irrelevant ``` ### Which area(s) are affected? (Select all that apply) Types ### Auth config (if applicable) ```typescript Irrelevant (client only) ``` ### Additional context _No response_
GiteaMirror added the bug label 2026-03-13 08:03:21 -05:00
Author
Owner

@alexwork1611 commented on GitHub (Mar 6, 2025):

Closing in favor of https://github.com/better-auth/better-auth/issues/1660.

@alexwork1611 commented on GitHub (Mar 6, 2025): Closing in favor of https://github.com/better-auth/better-auth/issues/1660.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#762