From 8563de98a7cafd491a71c7a2f23845ec67de62f5 Mon Sep 17 00:00:00 2001 From: Roman Barzyczak Date: Thu, 15 Feb 2024 22:32:42 +0100 Subject: [PATCH] Update provider.dart Fix for using shouldUpgradeAnonymous for Apple provider --- packages/firebase_ui_oauth_apple/lib/src/provider.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/firebase_ui_oauth_apple/lib/src/provider.dart b/packages/firebase_ui_oauth_apple/lib/src/provider.dart index fe5d28ee..aa662b22 100644 --- a/packages/firebase_ui_oauth_apple/lib/src/provider.dart +++ b/packages/firebase_ui_oauth_apple/lib/src/provider.dart @@ -56,7 +56,7 @@ class AppleProvider extends OAuthProvider { void mobileSignIn(AuthAction action) { authListener.onBeforeSignIn(); - if (action == AuthAction.link) { + if (action == AuthAction.link || shouldUpgradeAnonymous) { auth.currentUser ?.linkWithProvider(firebaseAuthProvider) .then(_onLinked)