From de8608707c83b3d01abe8497c45f6caebbfd6720 Mon Sep 17 00:00:00 2001 From: Rohin Date: Thu, 6 Jul 2023 08:10:45 -0700 Subject: [PATCH] docs(authentication): update the Twitter Sign-In example (#399) Co-authored-by: Robin Genz --- packages/authentication/docs/firebase-js-sdk.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/authentication/docs/firebase-js-sdk.md b/packages/authentication/docs/firebase-js-sdk.md index 41b578c1..d2623771 100644 --- a/packages/authentication/docs/firebase-js-sdk.md +++ b/packages/authentication/docs/firebase-js-sdk.md @@ -113,9 +113,9 @@ const signInWithTwitter = async () => { const result = await FirebaseAuthentication.signInWithTwitter({ skipNativeAuth: false, }); - // 2. Sign in on the web layer using the id token and secret + // 2. Sign in on the web layer using the access token and secret const credential = TwitterAuthProvider.credential( - result.credential?.idToken, + result.credential?.accessToken, result.credential?.secret, ); const auth = getAuth();