FormidableLabs / FormidableLabs/react-native-app-auth
Does refresh() throw if it fails to refresh, or does the returned value need to be checked?
Open
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 473
- PR merge metrics
- No merged PRs in 30d
Description
## Documentation Feedback
This is mostly a question, but I think the answer would be good to include in the documentation. Suppose the following:
- I call await refresh() inside a try catch block with a refresh token
- The user's account has been deactivated, so the refresh should fail
Will refresh() throw an error, or will the RefreshResult need to be checked to see if it failed?
Contributor guide
Assessment
This issue has not been assessed yet.