Skip to content

Better Auth Tanstack does not work in Expo / React Native (Solution inside) #5

@MattiaEffendi

Description

@MattiaEffendi

Hi! Thank you for the library, looks promising.

Unfortunately it doesn't seem to work on React Native / Expo due to the following error:

The package at "node_modules/jose/dist/node/esm/runtime/base64url.js" attempted to import the Node standard library module "node:buffer".
It failed because the native React runtime does not include the Node standard library.

It looks like better-auth-tanstack is trying to load Jose, which seems to need node:buffer, that in RN is not available.

Is there some way to fix this or will the library be never compatible with RN? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions