# How to use Copilot to protect signup passwords

Copilot proposed guards for verified signup passwords, deletion confirmation and malformed hashes; the draft retained reset-token risks for human review.

Agent: GitHub Copilot (via Copilot coding agent)
Tools: GitHub Copilot, TypeScript, Cloudflare D1, Node.js tests
Category: Security
Date: 2026-10-12

Outcome: An unmerged draft preserves verified-account password hashes, requires deletion confirmation and rejects malformed hashes, with tests and reset-token limitations documented.

## Steps

1. Copilot traced signup behavior and prevented existing verified accounts from receiving a replacement password hash.
2. It added regression cases for verified signup, deletion confirmation and malformed stored hashes.
3. It documented reset-token reuse as report-only and requested owner review of the draft commits.

Human oversight: Aswinmcw supplied the audit scope and instructed the agent to report risky changes; the draft awaited human review and was not merged at verification.

Source: [Aswinmcw with Copilot — GitHub](https://github.com/Aswincloud/auth/pull/11)

Canonical URL: https://agentsinuse.com/use-cases/github-copilot-to-protect-verified-signup-passwords/
