Javascript Firebase Google身份验证:提供的身份验证凭据格式不正确或已过期
我试图使用Firebase设置Google Auth,但得到:Javascript Firebase Google身份验证:提供的身份验证凭据格式不正确或已过期,javascript,firebase,firebase-authentication,Javascript,Firebase,Firebase Authentication,我试图使用Firebase设置Google Auth,但得到: { "code": "auth/invalid-credential", "message": "The supplied auth credential is malformed or has expired." } 在“网络”选项卡中,我注意到 { "error": { "code": 400, "message": "INVALID_IDP_RESPONSE : Error getting acc
{
"code": "auth/invalid-credential",
"message": "The supplied auth credential is malformed or has expired."
}
在“网络”选项卡中,我注意到
{
"error": {
"code": 400,
"message": "INVALID_IDP_RESPONSE : Error getting access token from google.com, OAuth2 redirect uri is: https://....firebaseapp.com/__/auth/handler, response: OAuth2TokenResponse{params: error=invalid_client&error_description=Unauthorized, httpMetadata: HttpMetadata{status=401, cachePolicy=NO_CACHE, cacheDuration=null, cacheImmutable=false, staleWhileRevalidate=null, filename=null, lastModified=null, headers=HTTP/1.1 200 OK\r\n\r\n, contentSecurityPolicies=[], cookieList=[]}}",
"errors": [
{
"message": "INVALID_IDP_RESPONSE : Error getting access token from google.com, OAuth2 redirect uri is: https://....firebaseapp.com/__/auth/handler, response: OAuth2TokenResponse{params: error=invalid_client&error_description=Unauthorized, httpMetadata: HttpMetadata{status=401, cachePolicy=NO_CACHE, cacheDuration=null, cacheImmutable=false, staleWhileRevalidate=null, filename=null, lastModified=null, headers=HTTP/1.1 200 OK\r\n\r\n, contentSecurityPolicies=[], cookieList=[]}}",
"domain": "global",
"reason": "invalid"
}
]
}
}
我目前正在本地主机上进行测试,如何使其工作?在授权域下,我已经看到localhost。怎么了
提供有关您如何登录Google以帮助重新创建此问题的更多信息。