Expo Better Auth breaking with any client plugin "better-auth/client/plugins"

I narrowed down the issue to "better-auth/client/plugins", using any client plugin on expo breaks the app and figured out "jose" was the issue

Here's a very basic repo with better auth which has the issue: https://github.com/abhay-ramesh/authTest
❗Someone help me out

Thank You


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

export const authClient = createAuthClient({
  baseURL: "http://localhost:8081" /* base url of your Better Auth backend. */,
  plugins: [
    expoClient({
      scheme: "myapp",
      storagePrefix: "myapp",
      storage: SecureStore,
    }),
    usernameClient(),  // This causes the issue
  ],
});
Screenshot_2025-02-23_at_10.30.00_AM.png
GitHub
Contribute to abhay-ramesh/authTest development by creating an account on GitHub.
Was this page helpful?