Skip to content

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

Closed
@davidlin1568

Description

@davidlin1568

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions