Skip to content

Commit 6dd3e69

Browse files
committed
(expo) ammend 01e57db - remove unwanted callback
1 parent 01e57db commit 6dd3e69

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/quickstarts/expo.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ description: Add authentication and user management to your Expo app with Clerk.
353353
const [password, setPassword] = React.useState('')
354354

355355
// Handle the submission of the sign-in form
356-
const onSignInPress = React.useCallback(async () => {
356+
const onSignInPress = async () => {
357357
if (!isLoaded) return
358358

359359
// Start the sign-in process using the email and password provided
@@ -369,7 +369,7 @@ description: Add authentication and user management to your Expo app with Clerk.
369369
await setActive({ session: signInAttempt.createdSessionId })
370370
router.replace('/')
371371
} else {
372-
// If the status is not complete, check why. User may need to
372+
// If the status isn't complete, check why. User might need to
373373
// complete further steps.
374374
console.error(JSON.stringify(signInAttempt, null, 2))
375375
}
@@ -378,7 +378,7 @@ description: Add authentication and user management to your Expo app with Clerk.
378378
// for more info on error handling
379379
console.error(JSON.stringify(err, null, 2))
380380
}
381-
}, [isLoaded, emailAddress, password])
381+
}
382382

383383
return (
384384
<View>
@@ -413,6 +413,8 @@ description: Add authentication and user management to your Expo app with Clerk.
413413

414414
## Add a sign-out button
415415

416+
At this point, your users can sign up or in, but they need a way to sign out.
417+
416418
In the `components/` folder, create a `SignOutButton.tsx` file with the following code. The [`useClerk()`](/docs/hooks/use-clerk) hook is used to access the `signOut()` function, which is called when the user clicks the "Sign out" button.
417419

418420
<Include src="_partials/expo/sign-out-custom-flow" />

0 commit comments

Comments
 (0)