【发布时间】: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