June 2018
Beginner to intermediate
394 pages
9h 2m
English
Google authentication will use the instance of the GoogleSigninOptions class and also it needs a googleApiClient object. Using a builder pattern, we will construct the following code snippet that will be passed to googleApiClient later:
GoogleSignInOptions signInOptions = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestIdToken(getString(R.string.default_web_client_id)) .requestEmail() .requestProfile() .build();
This fabricates a GoogleSignInOptions instance by utilizing the default arrangement for a Google Sign-in operation. The instance is arranged to ask for the client's Google account ID token, email address, and profile data. The ID token will be utilized later in return for Firebase authentication ...
Read now
Unlock full access