首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >错误:无效登录: 534-5.7.9应用程序专用密码要求。了解详细信息,请访问

错误:无效登录: 534-5.7.9应用程序专用密码要求。了解详细信息,请访问
EN

Stack Overflow用户
提问于 2022-05-03 19:57:47
回答 1查看 4.6K关注 0票数 0

由于google正在删除不太安全的应用程序模式,我正在将我的应用程序的密码设置(它是用flutter/Firebase编写的)从实际的google密码更改为在我的google帐户设置中生成的密码,以便提供完全访问权限。所以我把密码设成这样

代码语言:javascript
运行
复制
firebase functions:config:set gmail.email=email gmail.password=passwort

我检查了两次

代码语言:javascript
运行
复制
firebase functions:config:get

现在想试一试。但我的问题是它总是说

代码语言:javascript
运行
复制
 Error: Invalid login: 534-5.7.9 Application-specific password required. Learn more at 

这是我的职责

代码语言:javascript
运行
复制
import * as functions from "firebase-functions";
import nodemailer from "nodemailer";

const { email = "", password = "" } = functions.config().gmail || {};

const mailTransport = nodemailer.createTransport(
  `smtps://${email}:${password}@smtp.gmail.com`
);


const senEmail = async (email, subject, text) => {
  try {
  const mailOptions = {
    from: `"-IMPORTANT" <${email}>`,
    to: email,
    subject,
    text,
  };

  return mailTransport.sendMail(mailOptions);
} catch (error) {
  console.log("error", error);
  res.status(501).send(`Fehler! `);
  return;
}
};

export { senEmail };

我不得不说,我没有在我的应用程序中使用谷歌登录。这可能是个问题吗?

EN

回答 1

Stack Overflow用户

发布于 2022-05-04 14:07:02

好吧我修好了。我所做的是首先确保完成在这个博客中写的所有步骤

1.http://help.warmupinbox.com/en/articles/4934806-configure-for-google-workplace-with-two-factor-authentication-2fa

2.然后确保重新部署这些功能。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72104823

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档