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 {
341
341
return self
342
342
}
343
343
344
- func signIn( withEmail email: String , password: String ) async throws -> SignInOutcome {
344
+ func signIn( email: String , password: String ) async throws -> SignInOutcome {
345
345
let credential = EmailAuthProvider . credential ( withEmail: email, password: password)
346
346
return try await signIn ( credentials: credential)
347
347
}
348
348
349
- func createUser( withEmail email: String , password: String ) async throws -> SignInOutcome {
349
+ func createUser( email email: String , password: String ) async throws -> SignInOutcome {
350
350
authenticationState = . authenticating
351
351
352
352
do {
@@ -368,7 +368,7 @@ public extension AuthService {
368
368
}
369
369
}
370
370
371
- func sendPasswordRecoveryEmail( to email: String ) async throws {
371
+ func sendPasswordRecoveryEmail( email: String ) async throws {
372
372
do {
373
373
try await auth. sendPasswordReset ( withEmail: email)
374
374
} catch {
@@ -383,7 +383,7 @@ public extension AuthService {
383
383
// MARK: - Email Link Sign In
384
384
385
385
public extension AuthService {
386
- func sendEmailSignInLink( to email: String ) async throws {
386
+ func sendEmailSignInLink( email: String ) async throws {
387
387
do {
388
388
let actionCodeSettings = try updateActionCodeSettings ( )
389
389
try await auth. sendSignInLink (
Original file line number Diff line number Diff line change @@ -50,13 +50,13 @@ public struct EmailAuthView {
50
50
51
51
private func signInWithEmailPassword( ) async {
52
52
do {
53
- try await authService. signIn ( withEmail : email, password: password)
53
+ try await authService. signIn ( email : email, password: password)
54
54
} catch { }
55
55
}
56
56
57
57
private func createUserWithEmailPassword( ) async {
58
58
do {
59
- try await authService. createUser ( withEmail : email, password: password)
59
+ try await authService. createUser ( email : email, password: password)
60
60
} catch { }
61
61
}
62
62
}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public struct EmailLinkView {
25
25
26
26
private func sendEmailLink( ) async {
27
27
do {
28
- try await authService. sendEmailSignInLink ( to : email)
28
+ try await authService. sendEmailSignInLink ( email : email)
29
29
showModal = true
30
30
} catch { }
31
31
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public struct PasswordRecoveryView {
31
31
let recoveryResult : Result < Void , Error >
32
32
33
33
do {
34
- try await authService. sendPasswordRecoveryEmail ( to : email)
34
+ try await authService. sendPasswordRecoveryEmail ( email : email)
35
35
resultWrapper = ResultWrapper ( value: . success( ( ) ) )
36
36
} catch {
37
37
resultWrapper = ResultWrapper ( value: . failure( error) )
You can’t perform that action at this time.
0 commit comments