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

The Expo SDK 51 version app can't get the login success response messages. #908

Open
6 tasks done
davidlin1568 opened this issue May 21, 2024 · 3 comments
Open
6 tasks done
Labels
bug This points to a verified bug in the code

Comments

@davidlin1568
Copy link

Checklist

Description

I want to quickly demo the Auth0 app in Expo SDK version 51. It can open the login page, but when I click the login button and return to the App, the result gives me the undefine value. I also use the eas commend build, which also gets the same issues.
The variable - credentials response is undefined.

  const onLogin = async () => {
    try {
      await authorize();
      let credentials = await getCredentials();
      console.log(JSON.stringify(credentials))
      Alert.alert('AccessToken: ' + credentials.accessToken);
    } catch (e) {
      console.log(e);
      console.log(JSON.stringify(e))
    }
  };

image

Reproduction

  1. expo prebuild
  2. expo run:android
  3. Click the login button on the App.
  4. Input the email and password, then click the button.

Additional context

{
"name": "demoauth0",
"version": "1.0.0",
"scripts": {
"start": "expo start --dev-client",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web"
},
"dependencies": {
"@expo/metro-runtime": "~3.2.1",
"expo": "~51.0.7",
"expo-status-bar": "~1.12.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.74.1",
"react-native-auth0": "^3.2.1",
"react-native-web": "~0.19.10",
"expo-dev-client": "~4.0.14"
},
"devDependencies": {
"@babel/core": "^7.20.0"
},
"private": true
}

react-native-auth0 version

^3.2.1

React Native version

0.74.1

Expo version

~51.0.7

Platform

Android

Platform version(s)

Android emulator(Android Studio)

@davidlin1568 davidlin1568 added the bug This points to a verified bug in the code label May 21, 2024
@ap752-unikent
Copy link

I believe I am also experiencing this issue but with Expo v50.0.7. I can see a via the auth0 logs that there has been a successful login but no auth code was exchanged

@benny-conn
Copy link

Also after upgrading to expo sdk 51, I noticed that seemingly randomly, the getCredentials() function would return undefined. I had to downgrade to expo sdk 50 for the time being until this is resolved.

@davidlin1568
Copy link
Author

Also after upgrading to expo sdk 51, I noticed that seemingly randomly, the getCredentials() function would return undefined. I had to downgrade to expo sdk 50 for the time being until this is resolved.

This may be excellent news for solving this problem if I choose the Expo 50 SDK, but my project uses the Expo 51 SDK and has been running for a few months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

No branches or pull requests

3 participants