File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Sources/Swift/MultiFactor/TOTP Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 7
7
- [ removed] ** Breaking Change** : Remove deprecated Swift APIs using
8
8
` String ` -typed ` productID ` s that were in favor of API that leverages the
9
9
` AuthProviderID ` enum. Note, this only affects Swift clients.
10
+ - [ changed] ** Breaking Change** : ` TOTPSecret.openInOTPApp(withQRCodeURL:) ` is
11
+ now labeled with ` @MainActor ` and requires the ` await ` keyword when called
12
+ off of the main actor or main thread.
10
13
11
14
# 11.15.0
12
15
- [ fixed] Fixed ` Sendable ` warnings introduced in the Xcode 26 beta. (#14996 )
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ import Foundation
54
54
///
55
55
/// See more details
56
56
/// [here](https://developer.apple.com/documentation/authenticationservices/securing_logins_with_icloud_keychain_verification_codes)
57
- @objc ( openInOTPAppWithQRCodeURL: )
57
+ @MainActor @ objc ( openInOTPAppWithQRCodeURL: )
58
58
open func openInOTPApp( withQRCodeURL qrCodeURL: String ) {
59
59
if GULAppEnvironmentUtil . isAppExtension ( ) {
60
60
// iOS App extensions should not call [UIApplication sharedApplication], even if
Original file line number Diff line number Diff line change @@ -553,7 +553,7 @@ class AuthAPI_hOnlyTests: XCTestCase {
553
553
let obj = try await TOTPMultiFactorGenerator . generateSecret ( with: session)
554
554
_ = obj. sharedSecretKey ( )
555
555
_ = obj. generateQRCodeURL ( withAccountName: " name " , issuer: " issuer " )
556
- obj. openInOTPApp ( withQRCodeURL: " url " )
556
+ await obj. openInOTPApp ( withQRCodeURL: " url " )
557
557
}
558
558
559
559
func FIRTOTPMultiFactorGenerator_h( session: MultiFactorSession , secret: TOTPSecret ) {
You can’t perform that action at this time.
0 commit comments