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
GitHub
GitHub - abhay-ramesh/authTest
Contribute to abhay-ramesh/authTest development by creating an account on GitHub.

14 Replies
Hey got it narrowed down to v1.1.19, any version before it works, havent tried the beta-versions
@admin 1.1.19 breaks in expo. issue with crypto module

Hey guys, please try
1.1.20-beta.2
and report backGot a different error with
1.1.20-beta.2

is the
auth
import, the server auth instance?Yes ig
btw its this file
ok the prev screenshot is of a different repo,
i created a repo just to test the bug you can use it to test it and even there had the same issue: https://github.com/abhay-ramesh/authTest
its a very plain repo with expo and better-auth btw
1.1.20-beta.2
not working their eitherGitHub
GitHub - abhay-ramesh/authTest
Contribute to abhay-ramesh/authTest development by creating an account on GitHub.

ill try to test from
v1.1.18
till v1.1.19
we might be able to narrow down to figure out which release caused it
v1.1.18
works
v1.1.19-beta.1
works
v1.1.19-beta.2
doesn't work
v1.1.19-beta.3
doesn't work
v1.1.19
doesn't workGitHub
feat(one-tap): improve Google One Tap integration with JWT verific...
…ion and improved prompt handling (#1452)
* fix(auth): use options.baseURL instead of ctx.baseURL on trusted origins
* feat(one-tap): improve Google One Tap integration with JWT verification a...
packages/better-auth/src/plugins/one-tap/index.ts
Usage of "jose" might be the issue "Maybe"
ok i manually removed oneTap
from /node_modules/better-auth/dist/client/plugins.js
and it workedbut jose is imported in the server instance. you sholdn't import the server in your react native code.
if you need the type you should make sure to import it as a type
even if im not importing
import { auth } from "my-config"
have the issueshould be fixed on
1.1.20-beta.3
Hey thanks alot for the help, really love better-auth nice work