在中国使用Firebase身份验证和Firestore

问题描述:

将Firebase堆栈用于chrome扩展:)但是,存在一个大问题.

Using Firebase stack for chrome extensions :) However, have one BIG problem.

位于中国的用户无法使用该应用程序,因为Google在那里被阻止,因此Firebase身份验证失败...好吧,一种选择是使用VPN,但就用户体验而言,这是一个很大的问题.解决/解决此问题的方法

Users located in China cant use the app since Google is blocked there thus Firebase authentication fails ... well, one option is to use VPN but in terms of user experience, it's a big No No ... is there any better way to resolve/workaround this issue

主要使用firebase auth(Google提供程序)和Firestore

Using mainly firebase auth (Google provider) and Firestore

可以使用某种方式的自定义令牌来解决此问题吗? https://firebase.google.com/docs/auth/admin/create -自定义令牌

Can use somehow custom tokens to resolve this? https://firebase.google.com/docs/auth/admin/create-custom-tokens

在这种情况下,或者将外部身份验证服务与Firebase结合使用,还需要对Firestore进行身份验证访问

Or external authentication service combined with firebase, in this case, need to have authenticated access to firestore as well

在HEROKU上创建API.使您所有的Oauth和对firebase的每个调用都通过API.由于强大的防火墙阻止了该API,因此它将仅桥接CHINA和GoogleServices(Firebase)之间的所有信息.

Create an API on HEROKU. Make all your Oauth and every call made for firebase go through the API. This API will only bridge all information between CHINA and GoogleServices (Firebase) since the great firewall blocks them.