关于refresh-token的Firebase REST API INVALID_ARGUMENT

Raf*_*lue 5 php rest firebase firebase-authentication

昨天我们开始遇到REST API问题,尤其是刷新令牌方法:https://firebase.google.com/docs/reference/rest/auth/#section-refresh-token

curl 'https://securetoken.googleapis.com/v1/token?key=[API_KEY]' \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data 'grant_type=refresh_token&refresh_token=[REFRESH_TOKEN]'
Run Code Online (Sandbox Code Playgroud)

我们使用文档上的curl示例和我们自己的开发(使用PHP和Guzzle)尝试了这个调用,我们总是得到这个错误:

"error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT"
    }
Run Code Online (Sandbox Code Playgroud)

小智 4

看起来当您从 Google 数据中心内部拨打电话时就会发生这种情况,它对我们本地来说工作得很好。从 14 号起,我们也开始发生这种情况。我向 firebase 团队提出了一个错误。