From e4247305a2298d5a3594b4a522af761c4c586b41 Mon Sep 17 00:00:00 2001 From: Panagis Sarantos Date: Fri, 25 Oct 2024 01:01:41 +0200 Subject: [PATCH] Fix: Changed token=>tokenString in the AccessToken, for firebase-auth.md --- website/docs/firebase-auth.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/firebase-auth.md b/website/docs/firebase-auth.md index 8d428913..e9f0b761 100644 --- a/website/docs/firebase-auth.md +++ b/website/docs/firebase-auth.md @@ -9,7 +9,7 @@ Future signInWithFacebook() async { final LoginResult result = await FacebookAuth.instance.login(); if(result.status == LoginStatus.success){ // Create a credential from the access token - final OAuthCredential credential = FacebookAuthProvider.credential(result.accessToken!.token); + final OAuthCredential credential = FacebookAuthProvider.credential(result.accessToken!.tokenString); // Once signed in, return the UserCredential return await FirebaseAuth.instance.signInWithCredential(credential); }