mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 04:19:32 +00:00
fix: default to 1 day for session freshness
This commit is contained in:
@@ -272,9 +272,12 @@ export default function SignIn() {
|
||||
onClick={async () => {
|
||||
await signIn.passkey({
|
||||
fetchOptions: {
|
||||
onResponse(context) {
|
||||
onSuccess(context) {
|
||||
router.push("/dashboard");
|
||||
},
|
||||
onError(context) {
|
||||
toast.error(context.error.message);
|
||||
},
|
||||
},
|
||||
});
|
||||
}}
|
||||
|
||||
@@ -43,6 +43,9 @@ export const auth = betterAuth({
|
||||
dialect,
|
||||
type: "sqlite",
|
||||
},
|
||||
session: {
|
||||
freshAge: 0,
|
||||
},
|
||||
emailVerification: {
|
||||
async sendVerificationEmail({ user, url }) {
|
||||
const res = await resend.emails.send({
|
||||
|
||||
Reference in New Issue
Block a user