Mandate Law

How should my agent handle users' passwords and logins?

Delegated access versus stored passwords, the security and breach-notification duties that come with holding credentials, and a safer design.

Short answer

Avoid holding passwords if you can. Use delegated access (OAuth and scoped tokens) wherever the service offers it. If you must store credentials, you take on security obligations, and a breach of usernames and passwords triggers notification duties in most states. The model itself should never see a raw password.

Why passwords are different

A safer design

What to tell users

Your privacy policy and connection screens should say which accounts the agent can access, what it can do there, how credentials are stored, and how to disconnect. These statements have to match the code exactly.

Checklist an agent can run against the codebase

If this applies to you

An agent product review covers credential handling with the rest of the agent's authority model. Adding a new account integration is a pre-build feature check.