Skip to content

Commit

Permalink
Update FirebaseAuth/Sources/Swift/MultiFactor/MultiFactorSession.swift
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Cooke <[email protected]>
  • Loading branch information
paulb777 and ncooke3 authored Dec 10, 2024
1 parent 1042f5f commit 44a350b
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ import Foundation
var currentUser: User?

class func session(for user: User?) -> MultiFactorSession {
let currentUser = if user != nil {
user
} else {
Auth.auth().currentUser
}
let currentUser = user ?? Auth.auth().currentUser
guard let currentUser else {
fatalError("Internal Auth Error: missing user for multifactor auth")
}
Expand Down

0 comments on commit 44a350b

Please sign in to comment.