You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/references/expo/local-credentials.mdx
+77-74Lines changed: 77 additions & 74 deletions
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
---
2
-
title: Allow returning users to signin with biometrics in Expo
3
-
description: Learn how to use the useLocalCredentials hook in your Expo app with Clerk.
2
+
title: Enable biometric sign-in for returning users in Expo
3
+
description: Learn how to use the useLocalCredentials() hook in your Expo app to enable biometric sign-ins for returning users.
4
4
---
5
5
6
-
Clerk's [`useLocalCredentials()`](/docs/references/expo/use-local-credentials) hook enables you to store a user's password credentials on their device and subsequently use biometrics for sign-in.
7
-
8
-
This guide shows you how to use the `useLocalCredentials()` hook to enhance your user experience by allowing users to sign in using biometrics when they re-sign in to your Expo app.
9
-
10
6
> [!WARNING]
11
-
> This API is available only for [@clerk/clerk-expo v2](/docs/upgrade-guides/expo-v2/upgrade) >=2.2.0.
12
-
> Be aware that this works only for sign in attempts with the password strategy.
7
+
> This feature requires `@clerk/clerk-expo >[email protected]` and works only for sign-in attempts that use the password strategy.
8
+
9
+
This guide demonstrates how to use the [`useLocalCredentials()`](/docs/references/expo/use-local-credentials) hook in your Expo app to securely store a user's password credentials on their device, enabling biometric sign-in for returning users.
13
10
14
11
<Steps>
15
12
## Install the necessary peer dependencies
16
13
17
-
These packages are required to be installed in order to use the `useLocalCredentials()` hook.
14
+
The `useLocalCredentials()` hook requires the following packages to be installed in your project:
-`expo-secure-store`: Enables secure storage of credentials on the device
18
18
19
19
<CodeBlockTabsoptions={["npm", "yarn", "pnpm"]}>
20
20
```bash {{ filename: 'terminal' }}
@@ -32,82 +32,103 @@ This guide shows you how to use the `useLocalCredentials()` hook to enhance your
32
32
33
33
## Update `app.json`
34
34
35
-
Update your app.json file as instructed in the Expo documentation:
35
+
See the following Expo docs to update your `app.json` file with the necessary configurations for biometric sign-in. Replace `$(PRODUCT_NAME)` with your app's name as specified in the `"name"` field in your `app.json` file.
@@ -192,22 +214,3 @@ This guide shows you how to use the `useLocalCredentials()` hook to enhance your
192
214
}
193
215
```
194
216
</Steps>
195
-
196
-
## More resources
197
-
198
-
Use the following guides to learn more about Clerk components, how to build custom flows for your native apps, and how to use Clerk's client-side helpers.
199
-
200
-
<Cards>
201
-
-[Expo SDK](/docs/quickstarts/expo)
202
-
- Use Clerk with Expo to authenticate users in your React Native application.
203
-
204
-
---
205
-
206
-
-[Custom flows](/docs/custom-flows/overview)
207
-
- Expo native apps require custom flows in place of prebuilt components. Learn more about custom flows.
0 commit comments