简体   繁体   English

OAuth登录Cordova Firebase

[英]OAuth SignIn Cordova Firebase

I tried to use OAuth SignIn Cordova Firebase in a hybrid cordova app following the steps from this firebase tutorial: 我尝试按照此Firebase教程中的步骤在混合式Cordova应用程序中使用OAuth SignIn Cordova Firebase:

Authenticate Using OAuth Providers with Cordova 通过Cordova使用OAuth提供程序进行身份验证

But I did not succeed and get the error message below: 但是我没有成功,并收到以下错误消息:

Error: {"code":"auth/operation-not-supported-in-this-environment","message":"This operation is not supported in the environment this application is running on. \\"location.protocol\\" must be http, https or chrome-extension and web storage must be enabled."} 错误:{“代码”:“此环境不支持身份验证/操作”,“消息”:“在运行此应用程序的环境中不支持此操作。\\“ location.protocol \\”必须是http,https或chrome-extension,并且必须启用网络存储。“}

I found the solution, the issue was corrected in the latest Firebase JavaScript SDK release (4.1.3) 我找到了解决方案,在最新的Firebase JavaScript SDK版本(4.1.3)中,此问题已得到纠正。

Firebase JavaScript SDK Release Notes Firebase JavaScript SDK发行说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM