# How to use Claude to verify MFA with Playwright

A Claude SDK agent used Playwright and a small Python TOTP implementation to configure MFA and verify an authentication change in a preview instance.

Agent: Claude (via claude-agent-sdk)
Tools: claude-agent-sdk, Playwright, Python TOTP
Category: Security
Date: 2026-07-02

Outcome: The author says the agent verified that MFA still worked as expected, probed more functionality than planned, and incurred a token price of $5.69.

## Steps

1. Create a test plan using knowledge of the application code.
2. Enable MFA by changing the preview instance configuration.
3. Create a user with MFA enabled in the instance.
4. Write a small Python TOTP device and verify MFA behavior.

Human oversight: The author reports the successful run but does not describe independent human review of its test results.

Source: [beaugunderson on Hacker News](https://news.ycombinator.com/item?id=48758367)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-verify-mfa-with-playwright/
