Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/375.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Firebase Google身份验证:提供的身份验证凭据格式不正确或已过期_Javascript_Firebase_Firebase Authentication - Fatal编程技术网

Javascript Firebase Google身份验证:提供的身份验证凭据格式不正确或已过期

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

我试图使用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 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以帮助重新创建此问题的更多信息。