Sample react native app with google sign in authentification feature
- Used react-native-google-signin/google-signin library link -> https://github.com/react-native-google-signin/google-signin.
- Support all 3 types of authentication methods (standard, with server-side validation or with offline access (aka server-side access))
- Promise-based API consistent between Android and iOS
- Typings for TypeScript and Flow
- Mock of the native module for testing with Jest Native sign in buttons
- You need to install react-native-google-signin/google-signin. Link -> https://github.com/react-native-google-signin/google-signin.
- Create a new project with google cloud console link -> https://console.cloud.google.com/?project=alpine-tempo-403807
- Create a credential Oauth client id from API & Services tab under your project.
- Application type is Android ,you will need package name and SHA 1 certificate fingerprint of android app to proceed.
- You will also need to generate another credential Oauth client id in the same project this time application type should be web application.
- Use the web client id from web application OAuth 2.0 Client ID in configuration google sign in as illustrated in link -> https://github.com/react-native-google-signin/google-signin#configureoptions-void
- Please read https://github.com/react-native-google-signin/google-signin for more explanation about implementation aspect of google auth sign in.