如何解决用谷歌登录返回“缺少必需参数:redirect_uri”[IOS]
我正在尝试在我的 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 举报,一经查实,本站将立刻删除。