I don't want to retrieve the user name or profile photo that the user has on their Google Account.
export async function signUpGoogle() {
try {
const result = await Google.logInAsync({
androidClientId: GOOGLE_ANDROID_CLIENT_ID,
iosClientId: GOOGLE_IOS_CLIENT_ID,
scopes: ["email"],
});
//console.log(result);
if (result.type === "success") {
const credential = GoogleAuthProvider.credential(result.idToken);
signInWithCredential(auth, credential).catch((error) => {
console.log(error);
});
} else {
console.log("cancelled");
}
} catch (e) {
return { error: true };
}}
The code I use for GoogleSignIn is above.
versions:
"expo": "~44.0.0",
"expo-google-app-auth": "~8.3.0",
"firebase": "^9.1.3",
"@react-native-firebase/auth": "^12.9.3",