fix(passkey): remove email from query (#4740)

This commit is contained in:
Alex Yang
2025-09-18 15:37:09 -07:00
committed by GitHub
parent 19d4b6ac94
commit 481cb5f19d
4 changed files with 9 additions and 22 deletions

View File

@@ -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) {