Skip to content

Commit 793776f

Browse files
authored
minor typo fix in auth-flow (react-navigation#782)
The sentence "This can usually be done by checking if we have a token in `AsyncStorage` and validating if token" is a bit confusing. Specifically "validating if token". I believe it's implied that we check if the token exists and validate it.
1 parent 82cb3fc commit 793776f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

versioned_docs/version-5.x/auth-flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ return (
8888
);
8989
```
9090

91-
In the above snippet, `isLoading` means that we're still checking if we have a token. This can usually be done by checking if we have a token in `AsyncStorage` and validating if token. After we get the token and if it's valid, we need to set the `userToken`. We also have another state called `isSignout` to have a different animation on sign out.
91+
In the above snippet, `isLoading` means that we're still checking if we have a token. This can usually be done by checking if we have a token in `AsyncStorage` and validating the token. After we get the token and if it's valid, we need to set the `userToken`. We also have another state called `isSignout` to have a different animation on sign out.
9292

9393
The main thing to notice is that we're conditionally defining screens based on these state variables:
9494

0 commit comments

Comments
 (0)