Skip to content

Commit 8563de9

Browse files
authored
Update provider.dart
Fix for using shouldUpgradeAnonymous for Apple provider
1 parent d8e4e80 commit 8563de9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/firebase_ui_oauth_apple/lib/src/provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class AppleProvider extends OAuthProvider {
5656
void mobileSignIn(AuthAction action) {
5757
authListener.onBeforeSignIn();
5858

59-
if (action == AuthAction.link) {
59+
if (action == AuthAction.link || shouldUpgradeAnonymous) {
6060
auth.currentUser
6161
?.linkWithProvider(firebaseAuthProvider)
6262
.then(_onLinked)

0 commit comments

Comments
 (0)