Closed canbi closed 8 months ago
My current solution is to override the onTap behavior and it works as expected.
return AppleSignInButton(
loadingIndicator: const Center(child: CircularProgressIndicator.adaptive()),
action: AuthAction.link,
auth: FirebaseAuth.instance,
overrideDefaultTapAction: true,
onTap: () {
// ...
final currentUser = FirebaseAuth.instance.currentUser;
if (currentUser == null) {
// error handing
return;
}
currentUser.linkWithProvider(AppleProvider(scopes: {'email', 'fullName'}).firebaseAuthProvider).then((credentials) {
// custom implemented method
}).catchError((Object error) {
// custom implemented method
});
},
);
Thanks for the report. Seeing the same behavior as reported.
Is there an existing issue for this?
What plugin is this bug for?
Firebase UI OAuth
What platform(s) does this bug affect?
iOS
List of dependencies used.
flutter pub deps -s list
Steps to reproduce
Expected Behavior
If anonymous user has uid: "123...", after linking account with Apple Sign in, account uid should continue with "123...".
Actual Behavior
If anonymous user has uid: "123...", after linking account with Apple Sign in, user now has different uid, so linking not working.
Additional Information
Used configuration: