email-and-password-best-practices

Warn

Audited by Runlayer on Mar 3, 2026

Risk Level: MEDIUM
Scan Summary
Max Score
88%
Files
1
Flagged
1
Chunks
2
Flagged Files (1)
email-and-password-best-practices/SKILL.mdMEDIUM
88.1%

Malicious tool definition detected

To allow users to reset a password first you need to provide `sendResetPassword` function to the email and password authenticator. ```ts import { betterAuth } from "better-auth"; import { sendEmail } from "./email"; // your email sending function export const auth = betterAuth({ emailAndPassword: { enabled: true, // Custom email sending function to send reset-password email sendResetPassword: async ({ user, url, token }, request) => { void sendEmail({ to: user.email, subject: "Reset your passwor

Description: argon2Options), verify: ({ password, hash: storedHash }) => verify(storedHash, password, argon2Options), }, }, }); ``` **Note**: If you switch hashing algorithms on an existing system, users with passwords hashed using the old algorithm won't be able to sign in.

Audit Metadata
Max File Score
88%
Classification
KNOWN_SERVER_KNOWN_TOOL_LIST
Files Scanned
1
Files Flagged
1
Chunks Analyzed
2
Analyzed
Mar 3, 2026, 04:22 AM
Security Audit — runlayer — email-and-password-best-practices