mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 20:27:44 +00:00
fix(passkey): remove email from query (#4740)
This commit is contained in:
@@ -116,17 +116,10 @@ To sign in with a passkey you can use the `signIn.passkey` method. This will pro
|
||||
<APIMethod path="/sign-in/passkey" method="POST" isClientOnly>
|
||||
```ts
|
||||
type signInPasskey = {
|
||||
/**
|
||||
* The email of the user to sign in.
|
||||
*/
|
||||
email: string = "example@gmail.com"
|
||||
/**
|
||||
* Browser autofill, a.k.a. Conditional UI. Read more: https://simplewebauthn.dev/docs/packages/browser#browser-autofill-aka-conditional-ui
|
||||
*/
|
||||
autoFill?: boolean = true
|
||||
/**
|
||||
* The URL to redirect to after the user has signed in.
|
||||
*/
|
||||
}
|
||||
```
|
||||
</APIMethod>
|
||||
@@ -135,7 +128,6 @@ type signInPasskey = {
|
||||
```ts
|
||||
// With post authentication redirect
|
||||
await authClient.signIn.passkey({
|
||||
email: "user@example.com",
|
||||
autoFill: true,
|
||||
fetchOptions: {
|
||||
onSuccess(context) {
|
||||
|
||||
Reference in New Issue
Block a user