Expo: TypeError: Cannot read property 'subtle' of undefined
I updated the Expo client library and want to implement the magic link plugin, but when I try to use this plugin I'm receiving:
How could I fix it?
8 Replies
Did you solve this? Now having it on 1.3.7
Same here :/ 1.3.9
same here as well!
same here.
instead of using the Client plugins, I removed the plugins from the client side, and used $fetch method with the needed URL, for example:
before:
after:
OR before: after:
my current The only down side for me is type safety, if we use the plugins the types are already handled, but since the $fetch does not know what is the response we have to handle the types manually.
OR before: after:
my current The only down side for me is type safety, if we use the plugins the types are already handled, but since the $fetch does not know what is the response we have to handle the types manually.
Yeah i actually just removed the plugin from auth-client.ts and everything still worked, without updating the actual usage of the plugin functions. It shows type errors but it works still lol. Library definitely needs to address this issue.
hi, have you try to bump to the latest version? 1.3.9
can you try this?
https://github.com/better-auth/better-auth/issues/4471#issuecomment-3284336659
I think subtle is still not working. let me thing how to do that
GitHub
React Native build issue on v1.3.8 · Issue #4471 · better-auth/be...
Is this suited for github? Yes, this is suited for github To Reproduce Create a new expo app, install better-auth@1.3.8 and @better-auth/expo@1.3.8, setup according to docs, import a plugin from be...