mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-18 11:32:15 -05:00
docs(email-password): correct APIMethod contracts (#11499)
Co-authored-by: Taesu <166604494+bytaesu@users.noreply.github.com>
This commit is contained in:
@@ -74,7 +74,7 @@ To sign a user up, you can use the `signUp.email` function provided by the clien
|
||||
|
||||
To sign a user in, you can use the `signIn.email` function provided by the client.
|
||||
|
||||
<APIMethod path="/sign-in/email" method="POST" requireSession>
|
||||
<APIMethod path="/sign-in/email" method="POST">
|
||||
```ts
|
||||
type signInEmail = {
|
||||
/**
|
||||
@@ -105,7 +105,7 @@ To sign a user in, you can use the `signIn.email` function provided by the clien
|
||||
|
||||
To sign a user out, you can use the `signOut` function provided by the client.
|
||||
|
||||
<APIMethod path="/sign-out" method="POST" requireSession noResult>
|
||||
<APIMethod path="/sign-out" method="POST" requireHeaders noResult>
|
||||
```ts
|
||||
type signOut = {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user