Using Firebase authentication and Firestore in China

Viewed 6030

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 Answers

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.

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

Related