Skip to content

Commit cd089cd

Browse files
authored
Request email from GoogleSignInOptions (#1755)
1 parent e38e0ec commit cd089cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

auth/src/main/java/com/firebase/ui/auth/AuthUI.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,8 @@ public GoogleBuilder() {
996996
@NonNull
997997
public GoogleBuilder setScopes(@NonNull List<String> scopes) {
998998
GoogleSignInOptions.Builder builder =
999-
new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN);
999+
new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
1000+
.requestEmail();
10001001
for (String scope : scopes) {
10011002
builder.requestScopes(new Scope(scope));
10021003
}

0 commit comments

Comments
 (0)