fix: auto sign-in user after email verification

This commit is contained in:
Ajax Davis 2026-01-01 22:33:09 +10:00
parent ed3a215ee8
commit 763650e976

View file

@ -17,6 +17,8 @@ export const auth = betterAuth({
sendVerificationEmail: async ({ user, url }) => {
await sendVerificationEmail(user.email, url);
},
autoSignInAfterVerification: true,
sendOnSignUp: true,
},
session: {
expiresIn: 60 * 60 * 24 * 7, // 7 days