Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Auth apis returns OPERATION_NOT_ALLOWED 400

I am using this API https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=[API_KEY] I have pass correct token and param same as in documentation but still, it returns 400 OPERATION_NOT_ALLOWED

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

Param:-
{
    "email": "[email protected]",
    "password": "123123",
    "returnSecureToken": true
}

Response
{
    "error": {
        "code": 400,
        "message": "OPERATION_NOT_ALLOWED",
        "errors": [
            {
                "message": "OPERATION_NOT_ALLOWED",
                "domain": "global",
                "reason": "invalid"
            }
        ]
    }
}
like image 513
jiyush Avatar asked Aug 20 '19 09:08

jiyush


1 Answers

Go to firebase console -> authentication -> sign-in method and then enable email/password providers

enter image description here

like image 148
jiyush Avatar answered Oct 23 '22 00:10

jiyush