Firebase 的登录方式
| 登录方式 | 用户会收到的邮件 | 用 Proxy Mail QA 测试 |
|---|---|---|
| 邮箱和密码 | 验证链接(如果你的应用会发送)、密码重置链接、邮箱变更 | 是 |
| 邮件链接(无密码) | 登录链接 | 是 |
| Google、Apple、GitHub 等按钮 | 登录时没有邮件 | 否:使用你自己的账号 |
| 手机 | 短信 | 否 |
如果你的应用改用 Supabase、Clerk 或其他服务,请查看各服务会发送哪些邮件。
5 分钟测完每封登录邮件
- 在 Proxy Mail QA 中创建地址,如果表单要求填写姓名,可以使用生成的身份。
- 在你的应用上注册。 刚开始在自己的机器上运行就行;上线前要检查已部署的应用。
- 从该行打开验证链接。 该行会出现 Open link 按钮,Proxy Mail QA 绝不会先打开它。在已部署的应用中,如果链接会把用户带回
localhost,我们会标出来,即使这个地址藏在 Firebase 自己的链接里。 - 确认验证之前无法使用应用。
- 然后重置密码, 用新密码登录,并把它保存到该行。
在 Firebase 中要检查的三件事
1. 未验证的用户。 Firebase 允许用户注册后立即登录,无论他们是否点击了验证链接。生成的代码常常只发送邮件,却从不检查结果。请确保你的应用在注册后发送验证邮件,并让未验证的账号停留在“请查收邮件”页面。
2. 已授权域名。 用户在验证、重置密码或通过邮件登录后返回你应用的链接,只对 Authentication → Settings → Authorized domains 下列出的域名有效。localhost 和你的 Firebase Hosting 地址已经在列表中;请添加你的自定义域名,否则链接会因 auth/unauthorized-continue-uri 而失败。
3. 发件人。 在 Authentication → Templates 下,你可以修改发件人名称、从你自己的域名发送,并编辑每封邮件。请在上线前完成,让用户认得出邮件来自谁。
在使用邮件链接登录?Dynamic Links 停用后,Firebase 改变了这类链接的工作方式:设置方法见此。
让智能体来检查
Antigravity 的智能体可以使用 MCP 服务器。在智能体面板中打开 … → MCP Servers → Manage MCP Servers → View raw config,然后在 mcpServers 下添加 Proxy Mail QA:
{ "mcpServers": { "proxymail-qa": { "serverUrl": "https://api.proxymail.qa/mcp" } }}重启 Antigravity,在提示时登录 Proxy Mail QA,并选择智能体可以使用的项目。如需改用 API 密钥,请参阅 MCP server 设置。然后输入:
Create a test address with Proxy Mail QA, sign up on the running app with it, wait for the verification link and open it. Then tell me where the link went, and whether the account could use the app before it was verified.适用于 Antigravity 的可直接复制的提示词
List every email this app sends: verification, password reset, email-link sign-in, email change and anything else. For each, tell me what triggers it, which URL it continues to, and how long its link stays valid. Flag anything that uses localhost.After email and password sign-up, send a verification email and keep unverified users on a "check your email" screen with a button to send it again. Enforce it in the Firestore security rules as well, not only in the page.Make the verification, password reset and email-link sign-in emails continue to the deployed app's address, from an environment variable, and tell me which domain to add to Firebase's authorized domains.