From f5f1075a3d29db9b1bba07a61f090a0f164c44ab Mon Sep 17 00:00:00 2001 From: Varun Santhanam Date: Sat, 19 Aug 2023 14:21:21 -0700 Subject: [PATCH] Start session when binding changes --- Sources/SafariUI/WebAuthentication.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/SafariUI/WebAuthentication.swift b/Sources/SafariUI/WebAuthentication.swift index 3db137b85..9b0350b53 100644 --- a/Sources/SafariUI/WebAuthentication.swift +++ b/Sources/SafariUI/WebAuthentication.swift @@ -142,6 +142,8 @@ public struct WebAuthentication { session.presentationContextProvider = contextProvider session.prefersEphemeralWebBrowserSession = parent.prefersEphemeralWebBrowserSession + session.start() + self.session = session } @@ -273,6 +275,8 @@ public struct WebAuthentication { session.presentationContextProvider = contextProvider session.prefersEphemeralWebBrowserSession = parent.prefersEphemeralWebBrowserSession + session.start() + self.session = session }