I installed react-native and this library but when I tried running I got:
[TypeError: undefined is not an object (evaluating 'A0Auth0.oauthParameters')]
I tried looking into this and it seems that in webauth/index.js on line 11 the react-native object NativeModules does not contain A0Auth0. I looked into the react-native repo code and found no mention of A0Auth0 so maybe this repo isn't compatible with the latest version of react-native?
What's the fix for this?
@Abdisalan did you follow the install instructions detailed in the README?
Yes, I added the changes to my AppDelegate.m and added the xml piece to my Info.plist file.
@Abdisalan and react-native link react-native-auth0?
Oh I forgot that step! That fixed it. Thank you
For those of you experiencing the same problem but you are sure you run react-native link react-native-auth0, try:
react-native unlink react-native-auth0react-native link react-native-auth0It will unlink the project first, then link it again ... it's the way I solved this for Android. I had used react-native-lock previously and there was "some problem" when first running link for react-native-auth0.
Hope it helps someone.