-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Email enumeration protection related error and doc updates (#12081)
- Loading branch information
renkelvin
authored
Nov 17, 2023
1 parent
2aa184c
commit 7605a18
Showing
7 changed files
with
49 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,12 +96,9 @@ class AuthAPI_hOnlyTests: XCTestCase { | |
|
||
func FIRAuth_h(credential: AuthCredential) throws { | ||
let auth = FirebaseAuth.Auth.auth() | ||
let authApp = FirebaseAuth.Auth.auth(app: FirebaseApp.app()!) | ||
let user = auth.currentUser! | ||
auth.updateCurrentUser(user) { _ in | ||
} | ||
authApp.fetchSignInMethods(forEmail: "[email protected]") { string, error in | ||
} | ||
auth.signIn(withEmail: "[email protected]", password: "password") { result, error in | ||
} | ||
auth.signIn(withEmail: "[email protected]", link: "link") { result, error in | ||
|
@@ -173,7 +170,6 @@ class AuthAPI_hOnlyTests: XCTestCase { | |
let auth = FirebaseAuth.Auth.auth() | ||
let user = auth.currentUser! | ||
try await auth.updateCurrentUser(user) | ||
_ = try await auth.fetchSignInMethods(forEmail: "[email protected]") | ||
_ = try await auth.signIn(withEmail: "[email protected]", password: "password") | ||
_ = try await auth.signIn(withEmail: "[email protected]", link: "link") | ||
_ = try await auth.signIn(with: credential) | ||
|
@@ -574,8 +570,6 @@ class AuthAPI_hOnlyTests: XCTestCase { | |
let auth = FirebaseAuth.Auth.auth() | ||
let user = auth.currentUser! | ||
let credential = GoogleAuthProvider.credential(withIDToken: "token", accessToken: "aToken") | ||
user.updateEmail(to: "email") { _ in | ||
} | ||
user.updatePassword(to: "password") { _ in | ||
} | ||
let changeRequest = user.createProfileChangeRequest() | ||
|
@@ -648,7 +642,6 @@ class AuthAPI_hOnlyTests: XCTestCase { | |
let auth = FirebaseAuth.Auth.auth() | ||
let user = auth.currentUser! | ||
let credential = GoogleAuthProvider.credential(withIDToken: "token", accessToken: "aToken") | ||
try await user.updateEmail(to: "email") | ||
try await user.updatePassword(to: "password") | ||
let changeRequest = user.createProfileChangeRequest() | ||
try await user.reload() | ||
|