问题描述
我正在尝试在我的 ios 应用中使用 google 实现登录,但收到以下错误:
Error 400: invalid_request
Missing required parameter: redirect_uri
我使用这个插件登录 - https://github.com/EddyVerbruggen/cordova-plugin-googleplus
我在我的 firebase 帐户中注册了该应用,在我的 Xcode 项目中添加了 GoogleService-Info.plist,添加了 Firebase SDK 并对其进行了初始化。
在我的开发者 google 帐户中,我在 OAuth 2.0 客户端 ID 中有 Web 客户端(由 Google 服务自动创建)。
window.plugins.googleplus.login(
{
// scopes: '',// optional,space-separated list of scopes,If not included or empty,defaults to `profile` and `email`.
webClientId: '956821401453-rfjlraa2rhj0rp4qagj3c5jr8aareupj.apps.googleusercontent.com',// optional clientId of your Web application from Credentials settings of your project - On Android,this MUST be included to get an idToken. On iOS,it is not required.
offline: true // optional,but requires the webClientId - if set to true the plugin will also return a serverAuthCode,which can be used to grant offline access to a non-Google server
},
有人能帮我做错什么吗?
谢谢!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)