Expo types mismatch
Hi, I want to integrate better-auth with my Expo app, I created the client exactly like in the docs, but I'm receiving still the type error:
And this is the error that goes from plugin definition:
16 Replies
What’s your zod version and is it consistent? Im on 3.24.1
I'm on
zod: 3.23.8
and it's consistent across the whole monorepo
okay, the getCookie
is working, but it's missing typesJust in case: have you tried to restart your ts server?
yes, multiple times
what version of better auth are you on?
1.1.8
hmm, the zod update possibly fixes the types error 🤔
but now the
useSession
returns any, I can see that it comes from expo plugin? @bekacrumake sure to set strict:true in your tsconfig and check the expo example on the main repo as a starting point
yes, it's set across the whole monorepo
I can see something like this

I think that any overwrites every type that's why it's the result
does this get fixed if you remove the expoClient from the plugins list?
yes:

hey could you try
1.1.10-beta.1
and see if it fixeds the issuefor both core lib and expo plugin?
just for expo. may not be released yet wait a couple minutes or so.
okay, will do it later
Working now!