Skip to content
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

00-login-expo loading forever and not logging in #177

Open
4 tasks done
elise-baturone opened this issue Mar 11, 2024 · 2 comments
Open
4 tasks done

00-login-expo loading forever and not logging in #177

elise-baturone opened this issue Mar 11, 2024 · 2 comments

Comments

@elise-baturone
Copy link

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

@Elliot-Evans-95
Copy link

I had the same issue using React Native CLI
Warning: Cannot read property 'hasvalidAuth0Instance' of null

I 'fixed' this by downgrading:
"react-native-auth0": "3.1.0"

@david-shiko
Copy link

The same even after downgrading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants