-
Notifications
You must be signed in to change notification settings - Fork 157
Description
Checklist
- I have looked into the Readme (Base/Hooks/Expo) and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
After following the expo quickstart for auth0 for react native I am having issues:
First it would not stop loading. I had no error or log to give me any insights so I removed the isLoading condition and that did give me more info. The app view loaded correctly but pressing the log in button opened no login page or redirection. Instead the screen displayed 'you are not logged in' and 'cannot read property hasValidAuth0Instance of null'. The console displayed the following log '[TypeError: Cannot read property 'accessToken' of undefined]'. I have not found any help on the docs, forums, or issues of this repo.
Reproduction
I downloaded the sample from auth0 directly and followed the doc that ensued after. I have modified added and saved the logout and callback urls on auth0 and used the package name and bundle id found on app.json. And after having seen the error for the first time I changed the client id in the auth0-configuration file to the one I found on the settings of 'My App' on auth0. Which did not fix the error.
Additional context
I am coding on an intel mac using visual studio code and testing with both the ios simulator and my IPhone
Sample
Expo
Platform
iOS
Platform version(s)
expo 0.7.3