Google Auth API返回OPERATION_NOT_ALLOWED 400

时间:2019-08-20 09:26:49

标签: reactjs firebase google-authentication

我正在使用此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"
            }
        ]
    }
}

1 个答案:

答案 0 :(得分:3)

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

enter image description here