Also it appears that
Also, it appears that
ConvexProviderWithAuth0
does not support Expo/React Native environments. The window
ternary assumes that if its defined that window.location.origin
will be available.
3 Replies
I'm guessing it needs to use
react-native-auth0
instead of @auth0/auth0-react
, but I'm rather new to the Auth0 libs...
Is there a code example of using vanilla ConvexProvider
with Auth0?Yep.
ConvexProviderWithAuth0
is built for react and not react native. But you can look inside it to see how it works and make your own wrapper for other frameworks. It's a good starting point.
your intuition is totally on point@allen here's the
ConvexProviderWithAuth0
code: https://unpkg.com/browse/convex@0.9.1/src/react-auth0/ConvexProviderWithAuth0.tsxUNPKG - convex
The CDN for convex