[1.2.2] Type error with Expo client plugin

Hey y'all, I'm getting this huge type error when I try to create the auth client on an Expo app. Here is my auth client code and I'm using the version 1.2.2 of better-auth and the latest version of expo-secure-store (14.0.1):

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: process.env.NEXT_PUBLIC_AUTH_PROXY_URL ?? "",
  plugins: [
    expoClient({
      scheme: "app",
      storagePrefix: "app",
      storage: SecureStore,
    }),
  ],
});


Did anyone get this issue before?
Screenshot_2025-03-04_at_11.36.04.png
Solution
can you check if 1.2.6-beta.3 version fixes it?
Was this page helpful?