@@ -101,7 +101,7 @@ extension User: NSSecureCoding {}
101101 )
102102 #endif // !FIREBASE_CI
103103 @objc ( updateEmail: completion: )
104- open func updateEmail( to email: String , completion: ( @ Sendable ( Error ? ) -> Void ) ? = nil ) {
104+ open func updateEmail( to email: String , completion: ( ( Error ? ) -> Void ) ? = nil ) {
105105 kAuthGlobalWorkQueue. async {
106106 self . updateEmail ( email: email, password: nil ) { error in
107107 User . callInMainThreadWithError ( callback: completion, error: error)
@@ -173,7 +173,7 @@ extension User: NSSecureCoding {}
173173 /// - Parameter completion: Optionally; the block invoked when the user profile change has
174174 /// finished.
175175 @objc ( updatePassword: completion: )
176- open func updatePassword( to password: String , completion: ( @ Sendable ( Error ? ) -> Void ) ? = nil ) {
176+ open func updatePassword( to password: String , completion: ( ( Error ? ) -> Void ) ? = nil ) {
177177 guard password. count > 0 else {
178178 if let completion {
179179 completion ( AuthErrorUtils . weakPasswordError ( serverResponseReason: " Missing Password " ) )
@@ -234,7 +234,7 @@ extension User: NSSecureCoding {}
234234 /// finished.
235235 @objc ( updatePhoneNumberCredential: completion: )
236236 open func updatePhoneNumber( _ credential: PhoneAuthCredential ,
237- completion: ( @ Sendable ( Error ? ) -> Void ) ? = nil ) {
237+ completion: ( ( Error ? ) -> Void ) ? = nil ) {
238238 kAuthGlobalWorkQueue. async {
239239 self . internalUpdateOrLinkPhoneNumber ( credential: credential,
240240 isLinkOperation: false ) { error in
@@ -303,7 +303,7 @@ extension User: NSSecureCoding {}
303303 /// `updateEmail(to:)`.
304304 /// - Parameter completion: Optionally; the block invoked when the reload has finished. Invoked
305305 /// asynchronously on the main thread in the future.
306- @objc open func reload( completion: ( @ Sendable ( Error ? ) -> Void ) ? = nil ) {
306+ @objc open func reload( completion: ( ( Error ? ) -> Void ) ? = nil ) {
307307 kAuthGlobalWorkQueue. async {
308308 self . getAccountInfoRefreshingCache { user, error in
309309 User . callInMainThreadWithError ( callback: completion, error: error)
@@ -361,7 +361,7 @@ extension User: NSSecureCoding {}
361361 /// finished. Invoked asynchronously on the main thread in the future.
362362 @objc ( reauthenticateWithCredential: completion: )
363363 open func reauthenticate( with credential: AuthCredential ,
364- completion: ( @ Sendable ( AuthDataResult ? , Error ? ) -> Void ) ? = nil ) {
364+ completion: ( ( AuthDataResult ? , Error ? ) -> Void ) ? = nil ) {
365365 kAuthGlobalWorkQueue. async {
366366 Task {
367367 do {
@@ -463,7 +463,7 @@ extension User: NSSecureCoding {}
463463 @objc ( reauthenticateWithProvider: UIDelegate: completion: )
464464 open func reauthenticate( with provider: FederatedAuthProvider ,
465465 uiDelegate: AuthUIDelegate ? ,
466- completion: ( @ Sendable ( AuthDataResult ? , Error ? ) -> Void ) ? = nil ) {
466+ completion: ( ( AuthDataResult ? , Error ? ) -> Void ) ? = nil ) {
467467 kAuthGlobalWorkQueue. async {
468468 Task {
469469 do {
@@ -507,7 +507,7 @@ extension User: NSSecureCoding {}
507507 /// - Parameter completion: Optionally; the block invoked when the token is available. Invoked
508508 /// asynchronously on the main thread in the future.
509509 @objc ( getIDTokenWithCompletion: )
510- open func getIDToken( completion: ( @ Sendable ( String ? , Error ? ) -> Void ) ? ) {
510+ open func getIDToken( completion: ( ( String ? , Error ? ) -> Void ) ? ) {
511511 // |getIDTokenForcingRefresh:completion:| is also a public API so there is no need to dispatch to
512512 // global work queue here.
513513 getIDTokenForcingRefresh ( false , completion: completion)
@@ -523,7 +523,7 @@ extension User: NSSecureCoding {}
523523 /// asynchronously on the main thread in the future.
524524 @objc ( getIDTokenForcingRefresh: completion: )
525525 open func getIDTokenForcingRefresh( _ forceRefresh: Bool ,
526- completion: ( @ Sendable ( String ? , Error ? ) -> Void ) ? ) {
526+ completion: ( ( String ? , Error ? ) -> Void ) ? ) {
527527 getIDTokenResult ( forcingRefresh: forceRefresh) { tokenResult, error in
528528 if let completion {
529529 DispatchQueue . main. async {
@@ -563,7 +563,7 @@ extension User: NSSecureCoding {}
563563 /// - Parameter completion: Optionally; the block invoked when the token is available. Invoked
564564 /// asynchronously on the main thread in the future.
565565 @objc ( getIDTokenResultWithCompletion: )
566- open func getIDTokenResult( completion: ( @ Sendable ( AuthTokenResult ? , Error ? ) -> Void ) ? ) {
566+ open func getIDTokenResult( completion: ( ( AuthTokenResult ? , Error ? ) -> Void ) ? ) {
567567 getIDTokenResult ( forcingRefresh: false ) { tokenResult, error in
568568 if let completion {
569569 DispatchQueue . main. async {
@@ -584,7 +584,7 @@ extension User: NSSecureCoding {}
584584 /// asynchronously on the main thread in the future.
585585 @objc ( getIDTokenResultForcingRefresh: completion: )
586586 open func getIDTokenResult( forcingRefresh: Bool ,
587- completion: ( @ Sendable ( AuthTokenResult ? , Error ? ) -> Void ) ? ) {
587+ completion: ( ( AuthTokenResult ? , Error ? ) -> Void ) ? ) {
588588 kAuthGlobalWorkQueue. async {
589589 self . internalGetToken ( forceRefresh: forcingRefresh, backend: self . backend) { token, error in
590590 var tokenResult : AuthTokenResult ?
@@ -660,7 +660,7 @@ extension User: NSSecureCoding {}
660660 /// fails.
661661 @objc ( linkWithCredential: completion: )
662662 open func link( with credential: AuthCredential ,
663- completion: ( @ Sendable ( AuthDataResult ? , Error ? ) -> Void ) ? = nil ) {
663+ completion: ( ( AuthDataResult ? , Error ? ) -> Void ) ? = nil ) {
664664 kAuthGlobalWorkQueue. async {
665665 if self . providerDataRaw [ credential. provider] != nil {
666666 User . callInMainThreadWithAuthDataResultAndError (
@@ -747,7 +747,7 @@ extension User: NSSecureCoding {}
747747 @objc ( linkWithProvider: UIDelegate: completion: )
748748 open func link( with provider: FederatedAuthProvider ,
749749 uiDelegate: AuthUIDelegate ? ,
750- completion: ( @ Sendable ( AuthDataResult ? , Error ? ) -> Void ) ? = nil ) {
750+ completion: ( ( AuthDataResult ? , Error ? ) -> Void ) ? = nil ) {
751751 kAuthGlobalWorkQueue. async {
752752 Task {
753753 do {
@@ -847,7 +847,7 @@ extension User: NSSecureCoding {}
847847 /// - Parameter completion: Optionally; the block invoked when the request to send an email
848848 /// verification is complete, or fails. Invoked asynchronously on the main thread in the future.
849849 @objc ( sendEmailVerificationWithCompletion: )
850- open func __sendEmailVerification( withCompletion completion: ( @ Sendable ( Error ? ) -> Void ) ? ) {
850+ open func __sendEmailVerification( withCompletion completion: ( ( Error ? ) -> Void ) ? ) {
851851 sendEmailVerification ( completion: completion)
852852 }
853853
@@ -867,7 +867,7 @@ extension User: NSSecureCoding {}
867867 /// verification is complete, or fails. Invoked asynchronously on the main thread in the future.
868868 @objc ( sendEmailVerificationWithActionCodeSettings: completion: )
869869 open func sendEmailVerification( with actionCodeSettings: ActionCodeSettings ? = nil ,
870- completion: ( @ Sendable ( Error ? ) -> Void ) ? = nil ) {
870+ completion: ( ( Error ? ) -> Void ) ? = nil ) {
871871 kAuthGlobalWorkQueue. async {
872872 self . internalGetToken ( backend: self . backend) { accessToken, error in
873873 if let error {
@@ -932,7 +932,7 @@ extension User: NSSecureCoding {}
932932 /// `reauthenticate(with:)`.
933933 /// - Parameter completion: Optionally; the block invoked when the request to delete the account
934934 /// is complete, or fails. Invoked asynchronously on the main thread in the future.
935- @objc open func delete( completion: ( @ Sendable ( Error ? ) -> Void ) ? = nil ) {
935+ @objc open func delete( completion: ( ( Error ? ) -> Void ) ? = nil ) {
936936 kAuthGlobalWorkQueue. async {
937937 self . internalGetToken ( backend: self . backend) { accessToken, error in
938938 if let error {
@@ -985,8 +985,7 @@ extension User: NSSecureCoding {}
985985 /// - Parameter completion: Optionally; the block invoked when the request to send the
986986 /// verification email is complete, or fails.
987987 @objc ( sendEmailVerificationBeforeUpdatingEmail: completion: )
988- open func __sendEmailVerificationBeforeUpdating( email: String ,
989- completion: ( @Sendable ( Error ? ) -> Void ) ? ) {
988+ open func __sendEmailVerificationBeforeUpdating( email: String , completion: ( ( Error ? ) -> Void ) ? ) {
990989 sendEmailVerification ( beforeUpdatingEmail: email, completion: completion)
991990 }
992991
@@ -998,7 +997,7 @@ extension User: NSSecureCoding {}
998997 /// verification email is complete, or fails.
999998 @objc open func sendEmailVerification( beforeUpdatingEmail email: String ,
1000999 actionCodeSettings: ActionCodeSettings ? = nil ,
1001- completion: ( @ Sendable ( Error ? ) -> Void ) ? = nil ) {
1000+ completion: ( ( Error ? ) -> Void ) ? = nil ) {
10021001 kAuthGlobalWorkQueue. async {
10031002 self . internalGetToken ( backend: self . backend) { accessToken, error in
10041003 if let error {
0 commit comments