You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

调用Firebase登录/注册方法时触发DOMException问题求助

问题:调用登录方法获取userCredential时抛出DOMException,账号创建成功却无法使用

调用登录或创建账号方法获取userCredential对象时,会抛出DOMException。用户账号已成功创建,但因异常无法正常使用。

相关代码

loginForm.addEventListener('submit', e => {

  e.preventDefault();

  
  const email = loginForm['login-email'].value;
  const password = loginForm['login-password'].value;
  
  signInWithEmailAndPassword(auth, email, password)
  .then((userCredential) => {
    // Signed in 
    const user = userCredential.user; //DOMException
  });
})

已尝试操作

  • 重新创建项目
  • 全网搜索相关解决方案但未找到有效结果

内容的提问来源于stack exchange,提问作者Крит

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.26 01:49:50