Skip to content

Instantly share code, notes, and snippets.

@adrianhall
Last active September 18, 2018 20:05
Show Gist options
  • Save adrianhall/e9c36c4d164813d2651b0fa2aaa05d8e to your computer and use it in GitHub Desktop.
Save adrianhall/e9c36c4d164813d2651b0fa2aaa05d8e to your computer and use it in GitHub Desktop.
// Configure the Google Sign in requirements
val googleSignInOptions = GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestIdToken(resources.getString(R.string.google_client))
.requestEmail()
.build()
val googleSignInClient = GoogleSignIn.getClient(this, googleSignInOptions)
loginFormGoogleLoginButton.onClick {
startActivityForResult(googleSignInClient.signInIntent, GOOGLE_SIGN_IN)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment