【发布时间】:2022-07-20 14:03:41
【问题描述】:
我正在尝试使用 OAuth 实现仅客户端登录。收到以下错误:
details: "You have created a new client application that uses libraries for user authentication or authorization that will soon be deprecated. New clients must use the new libraries instead; existing clients must also migrate before these libraries are deprecated. See the [Migration Guide](https://developers.google.com/identity/gsi/web/guides/gis-migration) for more information."
error: "idpiframe_initialization_failed"
之后,每当我尝试登录时,都会收到以下错误:
error: "popup_closed_by_user"
[[Prototype]]: Object
现在我正在处理 localhost:3000,所以我在 OAuth 2.0 客户端 ID 中添加了 http://localhost:3000 作为授权的 JS 来源,还尝试将发布状态从测试更改为生产。用户类型设置为外部。
【问题讨论】:
-
我已经尝试了这里提供的所有选项:stackoverflow.com/questions/52529360/…。没有任何帮助。还能做什么?
-
观看以下 YouTube 视频,以便在您的 react 应用中实施新的 Google 身份; youtube.com/watch?v=roxC8SMs7HU