Skip to content

Commit

Permalink
fix(native-app): open correct browser when authenticating using passk…
Browse files Browse the repository at this point in the history
…eys (#15483)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
thoreyjona and kodiakhq[bot] authored Jul 11, 2024
1 parent ffd227d commit 2914148
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/native/app/src/screens/passkey/passkey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export const PasskeyScreen: NavigationFunctionComponent<{
authenticationResponse,
)
if (urlWithLoginHint) {
openNativeBrowser(urlWithLoginHint)
openNativeBrowser(urlWithLoginHint, parentComponentId)
}
}
setIsLoading(false)
Expand All @@ -200,7 +200,9 @@ export const PasskeyScreen: NavigationFunctionComponent<{

// If authenticate fails we fail silently - close the modal and open the browser
Navigation.dismissModal(componentId)
url && openNativeBrowser(url, parentComponentId)
if (url) {
openNativeBrowser(url, parentComponentId)
}
}
}}
style={{ marginBottom: theme.spacing[1] }}
Expand Down

0 comments on commit 2914148

Please sign in to comment.