react-native-auth0 icon indicating copy to clipboard operation
react-native-auth0 copied to clipboard

Networking client `timeout` not working on the 3.0.1

Open fragilehm opened this issue 2 years ago • 1 comments

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 avatar Nov 07 '23 08:11 fragilehm

@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.

poovamraj avatar Nov 08 '23 20:11 poovamraj

@fragilehm just wanted to check if you are still facing this issue in the latest version of the SDK- v4.0.0-beta.0.

brth31 avatar Nov 15 '24 04:11 brth31

Closing this issue as it appears to be resolved in v4.0.0. Please update to the latest version and retest. Reopen this issue if you continue to experience the problem.

arpit-jn avatar Jan 08 '25 15:01 arpit-jn