backpack1098B
Convex Community7h ago
2 replies
backpack1098

expo <> convex <> better auth integration

hey team, any idea what's the error below about? trying to setup expo with better auth but keep running into the error. im following the guide here: https://labs.convex.dev/better-auth/framework-guides/expo#create-a-better-auth-client-instance
 ERROR  [TypeError: window.addEventListener is not a function (it is undefined)] 

Code: convex-provider.tsx
  19 | export function ConvexProvider({ children }: PropsWithChildren) {
  20 |   return (
> 21 |     <ConvexBetterAuthProvider client={convex} authClient={authClient}>
     |     ^
  22 |       {children}
  23 |     </ConvexBetterAuthProvider>
  24 |   );
Call Stack

thanks!
Install and configure Convex + Better Auth for Expo.
Was this page helpful?