Skip to content

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh62 committed Oct 21, 2024
1 parent 46ae8ba commit 92999d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ class ShowHostedUISignOut: NSObject, Action {
callbackScheme: callbackURLScheme,
inPrivate: false,
presentationAnchor: signOutEvent.presentationAnchor)
#else
_ = try await sessionAdapter.showHostedUI(
url: logoutURL,
callbackScheme: callbackURLScheme,
inPrivate: false,
presentationAnchor: nil)
#endif
await sendEvent(with: nil, dispatcher: dispatcher, environment: environment)
} catch {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ struct SignOutEventData {
self.globalSignOut = globalSignOut
self.presentationAnchor = presentationAnchor
}
#else
init(globalSignOut: Bool) {
self.globalSignOut = globalSignOut
}
#endif
}

Expand Down

0 comments on commit 92999d1

Please sign in to comment.