Skip to content

Commit

Permalink
Fix: Changed token=>tokenString in the AccessToken, for firebase-auth.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Panagiss committed Oct 24, 2024
1 parent 3ec57cf commit e424730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/firebase-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Future<UserCredential?> 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);
}
Expand Down

0 comments on commit e424730

Please sign in to comment.