We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a57b52 commit 0da2bdaCopy full SHA for 0da2bda
packages/better-auth/src/api/routes/sign-in.ts
@@ -181,14 +181,23 @@ export const signInEmail = createAuthEndpoint(
181
{
182
method: "POST",
183
body: z.object({
184
+ /**
185
+ * Email of the user
186
+ */
187
email: z.string(),
188
189
+ * Password of the user
190
191
password: z.string(),
192
193
+ * Callback URL to redirect to after the user has signed in.
194
195
callbackURL: z.string().optional(),
196
/**
197
* If this is false, the session will not be remembered
198
* @default true
199
*/
- rememberMe: z.boolean().default(false).optional(),
200
+ rememberMe: z.boolean().default(true).optional(),
201
}),
202
},
203
async (ctx) => {
0 commit comments