react-native-auth0
react-native-auth0 copied to clipboard
Networking client `timeout` not working on the 3.0.1
Checklist
- [X] The issue can be reproduced in the react-native-auth0 sample app (or N/A).
- [X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- [X] I have looked into the API documentation and have not found a suitable solution or answer.
- [X] I have searched the issues and have not found a suitable solution or answer.
- [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- [X] I agree to the terms within the Auth0 Code of Conduct.
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
- Create an auth0 instance and pass
100(ms) for timeout:
auth0 = new Auth0({
domain:DOMAIN,
clientId: CLIENT_ID,
timeout: 100,
});
- 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 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.
@fragilehm just wanted to check if you are still facing this issue in the latest version of the SDK- v4.0.0-beta.0.
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.