careful-noon-74760
05/16/2025, 10:08 AMWebBrowser.openAuthSessionAsync
and the user clicking on login at Google, instead of opening the callback URL (https://myapp.com/api/.ory) inside the WebBrowser, the URL is opened with the app which can not handle it. We believe this interferes with the completion of the native login flow.
Context: the app is using deep links / universal links for the domain of https://myapp.com so that every path gets opened by the app.
How can we solve this issue?brief-egg-61061
05/16/2025, 10:08 AMbrief-egg-61061
05/16/2025, 10:09 AMreturn_to
parameter) that your app is configured to handle, passing the session token exchange code or other relevant data. ### Reference This approach is consistent with Ory’s documentation for native/mobile social sign-in, which describes the need for the browser to handle the Ory callback before returning control to the app via a deep link or app link. The documentation specifically notes: > As part of this flow, Ory will redirect the browser to a callback. ... Please ensure that this redirect URL is allowed. Go to Branding → Browser redirects in the Ory Console to allow it. > The native application then exchanges the session token exchange code for a session token ... using the first part of the code returned from the flow initialization, and the second part of the code returned from the return_to
query parameter. [Social sign-in for native and mobile apps](https://www.ory.sh/docs/kratos/social-signin/native-apps/) ### Summary - Exclude the Ory callback path from your app’s deep/universal link handling. - Allow the browser to handle the Ory callback and complete the authentication flow. - Only handle the final deep link (with the session token exchange code) in your app. This should resolve the issue where the app intercepts the Ory callback too early, allowing the native social login flow to complete as intended.careful-noon-74760
05/16/2025, 10:12 AMbrief-egg-61061
05/16/2025, 10:12 AMbrief-egg-61061
05/16/2025, 10:12 AM