FormidableLabs / FormidableLabs/react-native-app-auth

Does refresh() throw if it fails to refresh, or does the returned value need to be checked?

Open
#1,038 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.