File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Services Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -18,22 +18,24 @@ import Observation
1818@MainActor
1919@Observable
2020public final class PasswordPromptCoordinator {
21- var isPromptingPassword = false
21+ public var isPromptingPassword = false
2222 private var continuation : CheckedContinuation < String , Error > ?
2323
24- func confirmPassword( ) async throws -> String {
24+ public init ( ) { }
25+
26+ public func confirmPassword( ) async throws -> String {
2527 return try await withCheckedThrowingContinuation { continuation in
2628 self . continuation = continuation
2729 self . isPromptingPassword = true
2830 }
2931 }
3032
31- func submit( password: String ) {
33+ public func submit( password: String ) {
3234 continuation? . resume ( returning: password)
3335 cleanup ( )
3436 }
3537
36- func cancel( ) {
38+ public func cancel( ) {
3739 continuation?
3840 . resume ( throwing: AuthServiceError
3941 . signInCancelled ( " Password entry cancelled for Email provider " ) )
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ public final class AuthService {
132132 public var authenticationState : AuthenticationState = . unauthenticated
133133 public var authenticationFlow : AuthenticationFlow = . signIn
134134
135- public let passwordPrompt : PasswordPromptCoordinator = . init( )
135+ public var passwordPrompt : PasswordPromptCoordinator = . init( )
136136 public var currentMFARequired : MFARequired ?
137137 private var currentMFAResolver : MultiFactorResolver ?
138138
You can’t perform that action at this time.
0 commit comments