Firebase Google Auth: предоставленные учетные данные неверны или устарели - PullRequest
0 голосов
/ 20 октября 2019

Я попытался настроить Google Auth с помощью Firebase, но получил:

{
  "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, как можноЯ делаю эту работу? Под авторизованными доменами я уже вижу localhost. В чем дело?

enter image description here

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...