Skip to content

Commit 92999d1

Browse files
committed
fixed unit tests
1 parent 46ae8ba commit 92999d1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Actions/SignOut/ShowHostedUISignOut.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class ShowHostedUISignOut: NSObject, Action {
4646
callbackScheme: callbackURLScheme,
4747
inPrivate: false,
4848
presentationAnchor: signOutEvent.presentationAnchor)
49+
#else
50+
_ = try await sessionAdapter.showHostedUI(
51+
url: logoutURL,
52+
callbackScheme: callbackURLScheme,
53+
inPrivate: false,
54+
presentationAnchor: nil)
4955
#endif
5056
await sendEvent(with: nil, dispatcher: dispatcher, environment: environment)
5157
} catch {

AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/StateMachine/CodeGen/Data/SignOutEventData.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ struct SignOutEventData {
1818
self.globalSignOut = globalSignOut
1919
self.presentationAnchor = presentationAnchor
2020
}
21+
#else
22+
init(globalSignOut: Bool) {
23+
self.globalSignOut = globalSignOut
24+
}
2125
#endif
2226
}
2327

0 commit comments

Comments
 (0)