Using react-native-auth0, authorize is successful but returned result is undefined

I’m using the react-native-auth0 sdk to setup auth flow. Following the doc I did

try {
      let authResult = await authorize({ scope: "openid profile email" });
      console.debug("User authorized", authResult);
      let credentials = await getCredentials();
      console.debug("User access token", credentials);
    } catch (error) {
      console.error("Failed to sign in user", error);
    }

The authorize call is success, however the result and the credentials returned are always undefined.
I did my search here and also made sure the bundle identifier and callback URLs are added to my auth0 dashboard. Still undefined is returned(no error was thrown)
expo: ~52.0.38
react: 18.3.1
react-native: 0.76.7
react-native-auth0: ^4.4.0

I’m using iOS simulator

Hi @liuqiaowei512,

Welcome to the Auth0 Community!

It seems like another community member shared a reply that might help you with your issue: Trouble with authorizing my own backend api invalid token error - #5 by marcstedman

It mentions passing the audience parameter to the authorized request to get a valid JWT access token to get the credentials.

Could you try that and let me know if you continue having issues?

Thanks,
Rueben