-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better Auth Tanstack does not work in Expo / React Native (Solution inside) #5
Comments
I'll try to swap Jose out for an Expo compatible JWT checker. I've never used Expo before but I'll see what I can do for you |
@daveycodez thank you! Let me know if you need anything from my side.
using the |
I swapped out Jose for your function here, let me know if you have issues. v1.2.28 just published |
@daveycodez It works! Thank you for the fix. However, we ran into some issues — not on your side, but with the way the Better Auth Expo plugin handles the session cookie storage on the device:
This could be an intresting insight to update the docs of this repo with some advices on how to implement your hooks on Expo :) |
I'll leave this issue open until I'm done with docs site since this will be in the Expo integration guide |
Hi! Thank you for the library, looks promising.
Unfortunately it doesn't seem to work on React Native / Expo due to the following error:
It looks like
better-auth-tanstack
is trying to load Jose, which seems to neednode: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!
The text was updated successfully, but these errors were encountered: