Expo Client Missing Type Declaration #412

Closed
opened 2026-03-13 07:44:49 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @agallio on GitHub (Dec 16, 2024).

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

  1. Clone this minimum reproducible example: https://github.com/agallio/expo-better-auth-client-ts-bug
  2. Install packages using package manager (pnpm)
  3. Check the expo-auth-client.ts file, the @better-auth/expo/client will throw a TS error:
    image

Current vs. Expected behavior

It should not throw a TS error.

What version of Better Auth are you using?

1.0.21

Provide environment information

- OS: macOS Sequoia 15.1.1

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

Client

Auth config (if applicable)

No response

Additional context

No response

Originally created by @agallio on GitHub (Dec 16, 2024). ### Is this suited for github? - [X] Yes, this is suited for github ### To Reproduce 1. Clone this minimum reproducible example: https://github.com/agallio/expo-better-auth-client-ts-bug 2. Install packages using package manager (pnpm) 3. Check the `expo-auth-client.ts` file, the `@better-auth/expo/client` will throw a TS error: <img width="1163" alt="image" src="https://github.com/user-attachments/assets/e40497cc-4349-4867-b130-64f5d9c06c9a" /> ### Current vs. Expected behavior It should not throw a TS error. ### What version of Better Auth are you using? 1.0.21 ### Provide environment information ```bash - OS: macOS Sequoia 15.1.1 ``` ### Which area(s) are affected? (Select all that apply) Client ### Auth config (if applicable) _No response_ ### Additional context _No response_
GiteaMirror added the bug label 2026-03-13 07:44:49 -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#412