user forms added
This commit is contained in:
@@ -77,7 +77,7 @@ export const auth = betterAuth({
|
||||
minPasswordLength: 8, // optional config
|
||||
resetPasswordTokenExpirySeconds: process.env.RESET_EXPIRY_SECONDS, // time in seconds
|
||||
sendResetPassword: async ({ user, token }) => {
|
||||
const frontendUrl = `${process.env.BETTER_AUTH_URL}/lst/app/user/resetpassword?token=${token}`;
|
||||
const frontendUrl = `${process.env.URL}/lst/app/user/resetpassword?token=${token}`;
|
||||
const expiryMinutes = Math.floor(
|
||||
parseInt(process.env.RESET_EXPIRY_SECONDS ?? "3600", 10) / 60,
|
||||
);
|
||||
@@ -137,5 +137,3 @@ export const auth = betterAuth({
|
||||
// },
|
||||
},
|
||||
});
|
||||
|
||||
type Session = typeof auth.$Infer.Session;
|
||||
|
||||
Reference in New Issue
Block a user