AuthSession.startAsync login required

Just recently I’m starting to get an error after logging in using AuthSession.startAsync with auth0. Any ideas?

response:

"{
    "type": "success",
    "params": {
        "exp://127.0.0.1:19000/--/expo-auth-session": "",
        "error": "login_required",
        "error_description": "Login required"
    },
    "url": "exp://127.0.0.1:19000/--/expo-auth-session#error=login_required&error_description=Login%20required"
}"
  static login() {
    // Retrieve the redirect URL, add this to the callback URL list
    // of your Auth0 application.
    const redirectUrl = AuthSession.getRedirectUrl();
    console.log(`Redirect URL: ${redirectUrl}`);

    // Structure the auth parameters and URL
    const queryParams = toQueryString({
      client_id: auth0ClientId,
      redirect_uri: redirectUrl,
      response_type: 'id_token', // id_token will return a JWT token
      scope: 'openid profile', // retrieve the user's profile
      nonce: 'nonce', // ideally, this will be a random value
      prompt: 'none',
    });
    const authUrl = `${auth0Domain}/authorize` + queryParams;

    // Perform the authentication
    return AuthSession.startAsync({ authUrl });
  }

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.