Skip to content

Commit e45070a

Browse files
authored
docs(auth): use correct google sign-in response properties in social login example code (#8226)
1 parent a11363f commit e45070a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/auth/social-auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ async function onGoogleButtonPress() {
325325
}
326326

327327
// Create a Google credential with the token
328-
const googleCredential = auth.GoogleAuthProvider.credential(signInResult.data.token);
328+
const googleCredential = auth.GoogleAuthProvider.credential(signInResult.data.idToken);
329329

330330
// Sign-in the user with the credential
331331
return auth().signInWithCredential(googleCredential);

0 commit comments

Comments
 (0)