angular - Google 登录错误 - 用户取消登录或未完全授权
问题描述
使用“angularx-social-login”npm 模块进行登录,当运行 ionic serve cmd 但在设备中不工作时,它在浏览器上工作正常。
显示错误:
ERROR: Uncaught (in promise): User cancelled login or did not fully authorize.
this.OAuth.signIn(GoogleLoginProvider.PROVIDER_ID).then(res => {
console.log(res);
}):
解决方案
根据以下链接,我认为这是关于 angularx-social-login 的一个未解决问题:
如果您使用 Ionic 来实现使用 Google 登录,Ionic 已经有本地插件可以做到这一点
推荐阅读
- sql - 查询中的 SQL 多个约束计数
- python - 使用 Beautiful Soup 进行网页抓取,无类抓取多个元素
- java - lambda 返回后 AWS 转录作业未完成
- python - Pandaify - Pythonify (Max Observation , Last Observation) 计算
- javascript - 为在线学习课程实施音频按钮
- javascript - 超出标签chart.js的雷达宽度
- json - 使用 SwiftUI 过滤远程 Json 列表
- macos - VSCode“将登录信息写入钥匙串失败,出现错误'UNIX [没有这样的文件或目录]'。”
- java - 具有 ArrayLists 和 Pairs 的 Java 优先级队列
- android - 如何创建一个用emui实现的模拟器