React native node:buffer
The package at "node_modules/jose/dist/node/esm/runtime/base64url.js" attempted to import the Node standard library module "node:buffer".
exacly similar issue as https://github.com/better-auth/better-auth/issues/1551
better-auth version 1.3.8
import { expoClient } from "@better-auth/expo/client";
import * as SecureStore from "expo-secure-store";
import { createAuthClient } from "better-auth/react";
import { emailOTPClient } from "better-auth/client/plugins";
export const authClient = createAuthClient({
baseURL: process.env.EXPO_PUBLIC_SERVER_URL,
plugins: [
expoClient({
storagePrefix: "test",
storage: SecureStore,
}),
emailOTPClient(),
],
socialProviders: {
google: {
enabled: true,
},
},
});
export const { useSession } = authClient;
GitHub
Expo React native node:buffer · Issue #1551 · better-auth/better-...
Is this suited for github? Yes, this is suited for github To Reproduce install the latest version of better-auth in an expo react native project Works fine with better-auth@1.1.4 Current vs. Expect...
1 Reply
update: 1.3.6 and anything under that version works