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

Networking client timeout not working on the 3.0.1 #792

Open
6 tasks done
fragilehm opened this issue Nov 7, 2023 · 1 comment
Open
6 tasks done

Networking client timeout not working on the 3.0.1 #792

fragilehm opened this issue Nov 7, 2023 · 1 comment
Labels
bug This points to a verified bug in the code

Comments

@fragilehm
Copy link

Checklist

Description

After upgrading the package from 2.13.0 to 3.0.1 the timeout option to abort the request is not working anymore.

Reproduction

  1. Create an auth0 instance and pass 100 (ms) for timeout:
auth0 = new Auth0({
    domain:DOMAIN,
    clientId: CLIENT_ID,
    timeout: 100,
 });
  1. Login by calling webAuth.authorize
try {
  await auth0.webAuth.authorize({
          scope: SCOPE,
          audience: AUDIENCE,
          additionalParameters: {
            prompt: "login",
          },
  });
catch (error) {
  // should throw `Timeout` error
}

### Additional context

_No response_

### react-native-auth0 version

3.0.1

### React Native version

0.67.4

### Expo version

_No response_

### Platform

iOS

### Platform version(s)

15.6.1
@fragilehm fragilehm added the bug This points to a verified bug in the code label Nov 7, 2023
@poovamraj
Copy link
Contributor

@fragilehm thanks for raising this. Yes this needs to fixed on our end. We will work on this soon and update this thread as we make progress.

@camchis camchis mentioned this issue Dec 18, 2023
5 tasks
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

2 participants