//#region src/auth/password-policy-rules.ts
const MIN_PASSWORD_LENGTH = 15;
const PASSWORD_REQUIREMENTS = [
	{
		rule: "minLength",
		label: `At least ${MIN_PASSWORD_LENGTH} characters`,
		test: (p) => p.length >= MIN_PASSWORD_LENGTH
	},
	{
		rule: "lowercase",
		label: "One lowercase letter",
		test: (p) => /[a-z]/.test(p)
	},
	{
		rule: "uppercase",
		label: "One uppercase letter",
		test: (p) => /[A-Z]/.test(p)
	},
	{
		rule: "digit",
		label: "One number",
		test: (p) => /\d/.test(p)
	},
	{
		rule: "special",
		label: "One special character",
		test: (p) => /[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?`~]/.test(p)
	}
];

//#endregion
export { MIN_PASSWORD_LENGTH, PASSWORD_REQUIREMENTS };