Google Auth apis 返回 OPERATION_NOT_ALLOWED 400

jiy*_*ush 5 google-authentication firebase reactjs

我正在使用此 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"
            }
        ]
    }
}
Run Code Online (Sandbox Code Playgroud)

jiy*_*ush 7

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

在此处输入图片说明