File tree Expand file tree Collapse file tree
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -307,7 +307,8 @@ public extension AuthService {
307307 let link = url. absoluteString
308308
309309 if auth. isSignIn ( withEmailLink: link) {
310- let anonymousUserID = CommonUtils . getQueryParamValue ( from: link, paramName: " ui_auid " )
310+ let anonymousUserID = CommonUtils . getQueryParamValue ( from: link, paramName: " continueUrl " )
311+ . flatMap { CommonUtils . getQueryParamValue ( from: $0, paramName: " ui_auid " ) }
311312 if shouldHandleAnonymousUpgrade, anonymousUserID == currentUser? . uid {
312313 let credential = EmailAuthProvider . credential ( withEmail: email, link: link)
313314 try await handleAutoUpgradeAnonymousUser ( credentials: credential)
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ extension EmailAuthView: View {
125125 . frame ( maxWidth: . infinity)
126126 . buttonStyle ( . borderedProminent)
127127 Button ( action: {
128- authService. authView = . passwordRecovery
128+ authService. authView = . emailLink
129129 } ) {
130130 Text ( " Prefer Email link sign-in? " )
131131 }
You can’t perform that action at this time.
0 commit comments