Skip to content

Instantly share code, notes, and snippets.

@AngaKoko
Created March 31, 2020 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AngaKoko/24cc55e50a286f771d52380826ce5589 to your computer and use it in GitHub Desktop.
Save AngaKoko/24cc55e50a286f771d52380826ce5589 to your computer and use it in GitHub Desktop.
Initializing google sign in client
// Configure Google Sign In
val gso = GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestIdToken(getString(R.string.default_web_client_id))
.requestEmail()
.build()
//Initialize google sign in client
googleSignInClient = GoogleSignIn.getClient(requireActivity(), gso)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment