【问题标题】:React-app Google OAuth2 .0 Error 400: redirect_uri_mismatchReact-app Google OAuth2 .0 错误 400:redirect_uri_mismatch
【发布时间】:2022-04-01 02:19:34
【问题描述】:

我最初在 Google Developer Console 中将 Authorized URI 设置为“http://localhost:3000/”,但它给出了上述错误。

我尝试将其替换为“http://localhost:3000/login/google/return”作为错误图像,但通过这样做而不是成功登录,它再次重定向到相同的登录页面。

请帮帮我。

【问题讨论】:

    标签: google-cloud-platform oauth-2.0 google-authentication


    【解决方案1】:

    去你的OAuth 2.0客户端旁边的谷歌云平台,在JS源中添加http://localhost

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-06-22
      • 2021-09-06
      • 1970-01-01
      • 2014-12-24
      • 1970-01-01
      • 1970-01-01
      • 2021-01-05
      • 2021-10-14
      相关资源
      最近更新 更多