Firebase响应有效负载与文档不同

时间:2019-03-10 22:25:43

标签: firebase firebase-authentication

我正在使用firebase auth rest API进行练习,在文档中查看,https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key=[API_KEY]的预期响应应为:

{
    "kind": "identitytoolkit#VerifyPasswordResponse",
    "localId": "ZY1rJK0eYLg...",
    "email": "[user@example.com]",
    "displayName": "",
    "idToken": "[ID_TOKEN]",
    "registered": true,
    "refreshToken": "[REFRESH_TOKEN]",
    "expiresIn": "3600"
}

但是在我的答复中,我只会得到:

{
    "kind": "identitytoolkit#VerifyPasswordResponse",
    "localId": "",
    "email": "aa@aa.com",
    "displayName": "",
    "idToken": "token",
    "registered": true
}

缺少expiressIn和refresh令牌字段,我也需要此字段,如何解决呢?

0 个答案:

没有答案