Open zakblacki opened 3 years ago
You don't have to provide live example some basic snippet code example would be helpful to know
also there is a bug with flutter_facebook_auth
could be helpful to know for others basically if someone using get_strorage
it won't work with this package as discussed in here
So if you could give us another example with flutter_login_facebook
or flutter_facebook_login
package highly appreciated thanks
Edit : turn out I had to follow facebook documentation edit androidmanifest and style file
Here is the code for Apple authentication using sign_in_with_apple
I haven't tried yet on mac but it should work
`Platform.isIOS ? Padding(
padding: const EdgeInsets.all(18.0),
child: SignInWithAppleButton(
onPressed: () async {
final appleIdCredential = await SignInWithApple.getAppleIDCredential(
scopes: [
AppleIDAuthorizationScopes.email,
AppleIDAuthorizationScopes.fullName,
],
);
final oAuthProvider = OAuthProvider('apple.com');
final credential = oAuthProvider.credential(
idToken: appleIdCredential.identityToken,
accessToken: appleIdCredential.authorizationCode,
);
await FirebaseAuth.instance.signInWithCredential(credential);
print(credential);
},
),
) : Text(''),`
Thanks, I'll check it out.
On Thu, Jun 17, 2021, 16:33 Zak @.***> wrote:
Here is the code for Apple authentication using sign_in_with_apple I haven't tried yet on mac but it should work
Platform.isIOS ? Padding( padding: const EdgeInsets.all(18.0), child: SignInWithAppleButton( onPressed: () async { final appleIdCredential = await SignInWithApple.getAppleIDCredential( scopes: [ AppleIDAuthorizationScopes.email, AppleIDAuthorizationScopes.fullName, ], ); final oAuthProvider = OAuthProvider('apple.com'); final credential = oAuthProvider.credential( idToken: appleIdCredential.identityToken, accessToken: appleIdCredential.authorizationCode, ); await FirebaseAuth.instance.signInWithCredential(credential); print(credential); }, ), ) : Text(''),
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Destiny-Ed/Firebase-Authentication-Tutorial-project/issues/1#issuecomment-863342248, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN4RXI5LYBFAMYH36Y2CWMTTTIIUZANCNFSM46ZHSWCQ .
Thanks for sharing, please add apple login as well