[GH-ISSUE #1723] ExpoClient Abort Type Incompatible #26211

Closed
opened 2026-04-17 16:41:46 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @necmettindev on GitHub (Mar 7, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1723

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

Create an expo app with better-auth

Current vs. Expected behavior

Type 'AbortSignal | null | undefined' is not assignable to type 'AbortSignal | undefined'.

What version of Better Auth are you using?

1.2.3

Provide environment information

- OS: MacOS

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

Client

Auth config (if applicable)

import * as SecureStore from "expo-secure-store";
import { expoClient } from "@better-auth/expo/client";
import { createAuthClient } from "better-auth/react";

export const authClient = createAuthClient({
  baseURL: "http://localhost:3000",
  plugins: [
    expoClient({
      scheme: "x",
      storagePrefix: "x",
      storage: {
        getItem: SecureStore.getItem,
        setItem: SecureStore.setItem,
      },
    }),
  ],
});

Additional context

No response

Originally created by @necmettindev on GitHub (Mar 7, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1723 ### Is this suited for github? - [ ] Yes, this is suited for github ### To Reproduce Create an expo app with better-auth ### Current vs. Expected behavior Type 'AbortSignal | null | undefined' is not assignable to type 'AbortSignal | undefined'. ### What version of Better Auth are you using? 1.2.3 ### Provide environment information ```bash - OS: MacOS ``` ### Which area(s) are affected? (Select all that apply) Client ### Auth config (if applicable) ```typescript import * as SecureStore from "expo-secure-store"; import { expoClient } from "@better-auth/expo/client"; import { createAuthClient } from "better-auth/react"; export const authClient = createAuthClient({ baseURL: "http://localhost:3000", plugins: [ expoClient({ scheme: "x", storagePrefix: "x", storage: { getItem: SecureStore.getItem, setItem: SecureStore.setItem, }, }), ], }); ``` ### Additional context _No response_
GiteaMirror added the lockedbug labels 2026-04-17 16:41:47 -05:00
Author
Owner

@morganbarrett commented on GitHub (Mar 13, 2025):

I'm having the same issue, in addition authClient.getCookie() has the type error Property 'getCookie' does not exist on type...

<!-- gh-comment-id:2721236644 --> @morganbarrett commented on GitHub (Mar 13, 2025): I'm having the same issue, in addition `authClient.getCookie()` has the type error `Property 'getCookie' does not exist on type...`
Author
Owner

@Lermatroid commented on GitHub (Mar 14, 2025):

Same issue here. Did either of you find a temporary fix @necmettindev @morganbarrett?

<!-- gh-comment-id:2725949939 --> @Lermatroid commented on GitHub (Mar 14, 2025): Same issue here. Did either of you find a temporary fix @necmettindev @morganbarrett?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#26211