File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -341,12 +341,12 @@ public extension AuthService {
341341 return self
342342 }
343343
344- func signIn( withEmail email: String , password: String ) async throws -> SignInOutcome {
344+ func signIn( email: String , password: String ) async throws -> SignInOutcome {
345345 let credential = EmailAuthProvider . credential ( withEmail: email, password: password)
346346 return try await signIn ( credentials: credential)
347347 }
348348
349- func createUser( withEmail email: String , password: String ) async throws -> SignInOutcome {
349+ func createUser( email email: String , password: String ) async throws -> SignInOutcome {
350350 authenticationState = . authenticating
351351
352352 do {
@@ -368,7 +368,7 @@ public extension AuthService {
368368 }
369369 }
370370
371- func sendPasswordRecoveryEmail( to email: String ) async throws {
371+ func sendPasswordRecoveryEmail( email: String ) async throws {
372372 do {
373373 try await auth. sendPasswordReset ( withEmail: email)
374374 } catch {
@@ -383,7 +383,7 @@ public extension AuthService {
383383// MARK: - Email Link Sign In
384384
385385public extension AuthService {
386- func sendEmailSignInLink( to email: String ) async throws {
386+ func sendEmailSignInLink( email: String ) async throws {
387387 do {
388388 let actionCodeSettings = try updateActionCodeSettings ( )
389389 try await auth. sendSignInLink (
Original file line number Diff line number Diff line change @@ -50,13 +50,13 @@ public struct EmailAuthView {
5050
5151 private func signInWithEmailPassword( ) async {
5252 do {
53- try await authService. signIn ( withEmail : email, password: password)
53+ try await authService. signIn ( email : email, password: password)
5454 } catch { }
5555 }
5656
5757 private func createUserWithEmailPassword( ) async {
5858 do {
59- try await authService. createUser ( withEmail : email, password: password)
59+ try await authService. createUser ( email : email, password: password)
6060 } catch { }
6161 }
6262}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public struct EmailLinkView {
2525
2626 private func sendEmailLink( ) async {
2727 do {
28- try await authService. sendEmailSignInLink ( to : email)
28+ try await authService. sendEmailSignInLink ( email : email)
2929 showModal = true
3030 } catch { }
3131 }
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public struct PasswordRecoveryView {
3131 let recoveryResult : Result < Void , Error >
3232
3333 do {
34- try await authService. sendPasswordRecoveryEmail ( to : email)
34+ try await authService. sendPasswordRecoveryEmail ( email : email)
3535 resultWrapper = ResultWrapper ( value: . success( ( ) ) )
3636 } catch {
3737 resultWrapper = ResultWrapper ( value: . failure( error) )
You can’t perform that action at this time.
0 commit comments