DEV Community

Discussion on: Firebase Authentication with GetX in Flutter

Collapse
 
idaudk profile image
Daud K

bro, can you provide guide for facebook and forget password feature.

Collapse
 
imransefat profile image
Imran Sefat

It's mostly the same for the Facebook authentication. You will be needing the flutter_facebook_auth package which can be found here: pub.dev/packages/flutter_facebook_...

a sample sign in function is given below:

Future signInWithFacebook() async {
// Trigger the sign-in flow
final LoginResult loginResult = await FacebookAuth.instance.login();

// Create a credential from the access token
final OAuthCredential facebookAuthCredential = FacebookAuthProvider.credential(loginResult.accessToken.token);

// Once signed in, return the UserCredential
return FirebaseAuth.instance.signInWithCredential(facebookAuthCredential);
}

I will try to make a video or write an article for the auth process including the password reset functions.

Some comments have been hidden by the post's author - find out more