Skip to content

Commit 91a4d34

Browse files
authored
chore: edit auth-flow.md
- remove a duplicate paragraph - remove a redundant `'re`
1 parent db23292 commit 91a4d34

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ In the above snippet, `isLoading` means that we're still checking if we have a t
278278

279279
Next, we're exposing the sign in status via the `SignInContext` so that it's available to the `useIsSignedIn` and `useIsSignedOut` hooks.
280280

281-
In the above example, we're have one screen for each case. But you could also define multiple screens. For example, you probably want to define password reset, signup, etc screens as well when the user isn't signed in. Similarly for the screens accessible after sign in, you probably have more than one screen. We can use [`groups`](static-configuration.md#groups) to define multiple screens:
281+
In the above example, we have one screen for each case. But you could also define multiple screens. For example, you probably want to define password reset, signup, etc screens as well when the user isn't signed in. Similarly for the screens accessible after sign in, you probably have more than one screen. We can use [`groups`](static-configuration.md#groups) to define multiple screens:
282282

283283
```js
284284
const RootStack = createNativeStackNavigator({
@@ -345,8 +345,6 @@ return (
345345
</TabItem>
346346
</Tabs>
347347

348-
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 `SecureStore` 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.
349-
350348
The main thing to notice is that we're conditionally defining screens based on these state variables:
351349

352350
- `SignIn` screen is only defined if `userToken` is `null` (user is not signed in)

0 commit comments

Comments
 (0)