【问题标题】:Google Auth apis returns OPERATION_NOT_ALLOWED 400Google 身份验证 API 返回 OPERATION_NOT_ALLOWED 400
【发布时间】:2019-12-25 11:43:18
【问题描述】:

我正在使用这个 API https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=[API_KEY] 我已经传递了与文档中相同的正确令牌和参数,但它仍然是 returns 400 OPERATION_NOT_ALLOWED

https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=[API_KEY]

Param:-
{
    "email": "test@test.com",
    "password": "123123",
    "returnSecureToken": true
}

Response
{
    "error": {
        "code": 400,
        "message": "OPERATION_NOT_ALLOWED",
        "errors": [
            {
                "message": "OPERATION_NOT_ALLOWED",
                "domain": "global",
                "reason": "invalid"
            }
        ]
    }
}

【问题讨论】:

  • 您是否在正文中传递数据..?如果没有,请在正文中传递数据。并在标头中传递 API_key
  • @imranali 感谢您的回复我正在使用邮递员在 body->raw->json 中传递数据,还在标题中传递 API_key 但仍然无法正常工作。
  • 那个 API 已经不存在了...根据谷歌developers.google.com/identity/toolkit

标签: reactjs firebase google-authentication


【解决方案1】:

转到firebase控制台->身份验证->登录方法 然后启用电子邮件/密码提供商

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-10-15
    • 1970-01-01
    • 1970-01-01
    • 2019-01-27
    • 1970-01-01
    • 1970-01-01
    • 2022-12-21
    • 2019-03-05
    相关资源
    最近更新 更多