Skip to content

Commit c0d80db

Browse files
auth service separate sign-in flows
1 parent 7d23b2c commit c0d80db

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Services/AuthService.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,11 @@ public final class AuthService {
175175
}
176176
}
177177
}
178+
}
179+
180+
// MARK: - Email/Password Sign In
178181

182+
public extension AuthService {
179183
func signIn(withEmail email: String, password: String) async throws {
180184
let credential = EmailAuthProvider.credential(withEmail: email, password: password)
181185
try await auth.signIn(with: credential)
@@ -199,7 +203,11 @@ public final class AuthService {
199203
throw error
200204
}
201205
}
206+
}
207+
208+
// MARK: - Email Link Sign In
202209

210+
public extension AuthService {
203211
func sendEmailSignInLink(to email: String) async throws {
204212
do {
205213
let actionCodeSettings = try safeActionCodeSettings()

0 commit comments

Comments
 (0)