File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,8 @@ public extension AuthService {
307
307
let link = url. absoluteString
308
308
309
309
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 " ) }
311
312
if shouldHandleAnonymousUpgrade, anonymousUserID == currentUser? . uid {
312
313
let credential = EmailAuthProvider . credential ( withEmail: email, link: link)
313
314
try await handleAutoUpgradeAnonymousUser ( credentials: credential)
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ extension EmailAuthView: View {
125
125
. frame ( maxWidth: . infinity)
126
126
. buttonStyle ( . borderedProminent)
127
127
Button ( action: {
128
- authService. authView = . passwordRecovery
128
+ authService. authView = . emailLink
129
129
} ) {
130
130
Text ( " Prefer Email link sign-in? " )
131
131
}
You can’t perform that action at this time.
0 commit comments