How to setup Google Authentication using React Native Expo

Firebase google authentication using react expo ( For Android Users )

  • After creating a account / Login into account, search for Create Credentials button and click on it
  • Now under Package name add “host.exp.exponent” as per the expo documentations.
  • Get the SHA-1 key if you have the key paste under SHA-1 signing certificate fingerprint in, if you don’t have the key then use this command to get the key “keytool -list -v -keystore (path to .android )\debub.keystore -alias androiddebugkey -storepass android -keypass android” , after that copy the SHA-1 key and paste it near SHA-1 signing certificate fingerprint and click create button to create a client id.
  • After login search for Go to Console button and click it that will redirect to console.firebase.google.com
  • Now select the web icon
  • Now copy the firebaseConfig part with the apiKey,authDomain,etc. Now create a config.js file in your react project in the main tree and paste the firebaseConfig part in it.
  • Under Google sign in, select your email id.

Full Stack Developer [Web | Mobile]

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store