19
votes

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

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

Using mainly firebase auth (Google provider) and Firestore

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

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

2
even you solve the auth, arenot you still blocked using Firestore ? - WeiChing 林煒清
@WeiChingLin yep, firestore is offline as well here ... :( - alexpov
Im thinking of service-worker proxy, do any one success with it? - WeiChing 林煒清
@WeiChingLin Iam not familiar with that, can you give more info - alexpov

2 Answers

7
votes

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.

1
votes

The simplest solution may be to set up a proxy server to forward your apps requests to Firebase.