我正在使用 firebase 在我的 React Web 应用程序上实现 Sign in with Apple。我创建了一个 AppID、服务 ID,并启用了“使用 Apple 登录”。创建密钥、配置并完成此处所述的所需步骤。但是,在使用 Apple 登录时,我仍然收到以下错误响应。我已经实现了 Facebook 和 Google 登录,没有任何问题。
{
"error": {
"code": 400,
"message": "INVALID_IDP_RESPONSE : Error getting access token from https://appleid.apple.com, OAuth2 redirect uri is: https://rideup-984a6.firebaseapp.com/__/auth/handler, response: OAuth2TokenResponse{params: error=invalid_client, httpMetadata: HttpMetadata{status=400, cachePolicy=NO_CACHE, cacheDurationJava=null, cacheImmutable=false, staleWhileRevalidate=null, filename=null, lastModified=null, retryAfter=null, headers=HTTP/1.1 200 OK\r\n\r\n, contentSecurityPolicies=[], originTrials=[], cookieList=[]}}",
"errors": [
{
"message": "INVALID_IDP_RESPONSE : Error getting access token from https://appleid.apple.com, OAuth2 redirect uri is: https://rideup-984a6.firebaseapp.com/__/auth/handler, response: OAuth2TokenResponse{params: error=invalid_client, httpMetadata: HttpMetadata{status=400, cachePolicy=NO_CACHE, cacheDurationJava=null, cacheImmutable=false, staleWhileRevalidate=null, filename=null, lastModified=null, retryAfter=null, headers=HTTP/1.1 200 OK\r\n\r\n, contentSecurityPolicies=[], originTrials=[], cookieList=[]}}",
"domain": "global",
"reason": "invalid"
}
]
}
}
请帮我解决这个问题。
我有同样的无效客户端错误。就我而言,这也是因为 Firebase 中的 Id 设置不正确。它们在开发者门户中的名称与 Firebase 使用的名称不同,以便更容易理解。这是您需要在每个平台中使用的,使用它们使用的相同标签:
图片中: