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/authentication/configuration/sign-up-sign-in-options.mdx
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -65,8 +65,6 @@ A passkey is a type of sign-in credential that requires one user action, but use
65
65
1. A pin number or biometric data
66
66
1. A physical device
67
67
68
-
Passkeys are the most secure **passwordless** strategy because they use two factors.
69
-
70
68
Users can only create passkeys after signing up, so you'll need to enable another authentication strategy for the sign-up process. After signing in, users can create a passkey.
@@ -5,9 +5,9 @@ description: Learn how to use the Clerk API to build a custom authentication flo
5
5
6
6
<Includesrc="_partials/custom-flows-callout" />
7
7
8
-
Clerk supports passwordless authentication via passkeys, enabling users to sign in without having to remember a password. Instead, users select a passkey associated with their device, which they can use to authenticate themselves.
8
+
Clerk supports passwordless authentication via [passkeys](/docs/authentication/configuration/sign-up-sign-in-options#passkeys), enabling users to sign in without having to remember a password. Instead, users select a passkey associated with their device, which they can use to authenticate themselves.
9
9
10
-
This guide will walk you through how to use the Clerk API to build custom flows for creating, signing users in with, and managing passkeys.
10
+
This guide demonstrates how to use the Clerk API to build a custom user interface for creating, signing users in with, and managing passkeys.
11
11
12
12
## Enable passkeys
13
13
@@ -24,182 +24,159 @@ To use passkeys, first enable the strategy in the Clerk Dashboard.
24
24
25
25
To create a passkey for a user, you must call [`User.createPasskey()`](/docs/references/javascript/user/user#create-passkey), as shown in the following example:
return <buttononClick={createClerkPasskey}>Create a passkey now</button>
48
41
}
49
-
```
50
-
</CodeBlockTabs>
42
+
43
+
return <buttononClick={createClerkPasskey}>Create a passkey</button>
44
+
}
45
+
```
51
46
52
47
## Sign a user in with a passkey
53
48
54
49
To sign a user into your Clerk app with a passkey, you must call [`SignIn.authenticateWithPasskey()`](/docs/references/javascript/sign-in/authenticate-with#authenticate-with-passkey). This method allows users to choose from their discoverable passkeys, such as hardware keys or passkeys in password managers.
return <buttononClick={signInWithPasskey}>Sign in with a passkey</button>
90
77
}
91
-
```
92
-
</CodeBlockTabs>
78
+
79
+
return <buttononClick={signInWithPasskey}>Sign in with a passkey</button>
80
+
}
81
+
```
93
82
94
83
## Rename user passkeys
95
84
96
85
Clerk generates a name based on the device associated with the passkey when it's created. Sometimes users may want to rename a passkey to make it easier to identify.
97
86
98
87
To rename a user's passkey in your Clerk app, you must call the [`update()`](/docs/references/javascript/types/passkey-resource#update) method of the passkey object, as shown in the following example:
To delete a user's passkey from your Clerk app, you must call the [`delete()`](/docs/references/javascript/types/passkey-resource#delete) method of the passkey object, as shown in the following example:
0 commit comments