fix: auto sign-in user after email verification
This commit is contained in:
parent
ed3a215ee8
commit
763650e976
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue