MCPcopy
hub / github.com/nextjs/saas-starter / hashPassword

Function hashPassword

lib/auth/session.ts:9–11  ·  view source on GitHub ↗
(password: string)

Source from the content-addressed store, hash-verified

7const SALT_ROUNDS = 10;
8
9export async function hashPassword(password: string) {
10 return hash(password, SALT_ROUNDS);
11}
12
13export async function comparePasswords(
14 plainTextPassword: string,

Callers 2

seedFunction · 0.90
actions.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected