mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
docs: fix broken link
This commit is contained in:
@@ -15,20 +15,14 @@ export const auth = betterAuth({
|
|||||||
}),
|
}),
|
||||||
emailAndPassword: {
|
emailAndPassword: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
async sendResetPassword(token, user) {
|
async sendResetPassword(url, user) {
|
||||||
const res = await resend.emails.send({
|
const res = await resend.emails.send({
|
||||||
from,
|
from,
|
||||||
to: user.email,
|
to: user.email,
|
||||||
subject: "Reset your password",
|
subject: "Reset your password",
|
||||||
react: reactResetPasswordEmail({
|
react: reactResetPasswordEmail({
|
||||||
username: user.email,
|
username: user.email,
|
||||||
resetLink: `${
|
resetLink: url,
|
||||||
process.env.NODE_ENV === "development"
|
|
||||||
? "http://localhost:3000"
|
|
||||||
: process.env.NEXT_PUBLIC_APP_URL ||
|
|
||||||
process.env.VERCEL_URL ||
|
|
||||||
process.env.BETTER_AUTH_URL
|
|
||||||
}/reset-password/${token}`,
|
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -121,14 +121,16 @@ export default function Hero() {
|
|||||||
Get Started
|
Get Started
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Button
|
<Link href="https://github.com/better-auth/better-auth">
|
||||||
variant="outline"
|
<Button
|
||||||
size="lg"
|
variant="outline"
|
||||||
className="flex rounded-none items-center gap-2"
|
size="lg"
|
||||||
>
|
className="flex rounded-none items-center gap-2"
|
||||||
<Github size={16} />
|
>
|
||||||
View on GitHub
|
<Github size={16} />
|
||||||
</Button>
|
View on GitHub
|
||||||
|
</Button>
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user