Skip to content

Commit 0da2bda

Browse files
committed
fix: remeber me should default to true
1 parent 0a57b52 commit 0da2bda

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/better-auth/src/api/routes/sign-in.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,23 @@ export const signInEmail = createAuthEndpoint(
181181
{
182182
method: "POST",
183183
body: z.object({
184+
/**
185+
* Email of the user
186+
*/
184187
email: z.string(),
188+
/**
189+
* Password of the user
190+
*/
185191
password: z.string(),
192+
/**
193+
* Callback URL to redirect to after the user has signed in.
194+
*/
186195
callbackURL: z.string().optional(),
187196
/**
188197
* If this is false, the session will not be remembered
189198
* @default true
190199
*/
191-
rememberMe: z.boolean().default(false).optional(),
200+
rememberMe: z.boolean().default(true).optional(),
192201
}),
193202
},
194203
async (ctx) => {

0 commit comments

Comments
 (0)