Skip to content

Commit 0cc6367

Browse files
authored
Revert "fix: skip popup flow for Chrome iOS, use direct iframe passke… (#2420)
…y creation (#2419)" This reverts commit 2a12b8f.
1 parent 2a12b8f commit 0cc6367

File tree

1 file changed

+1
-4
lines changed
  • packages/keychain/src/components/connect/create/webauthn

1 file changed

+1
-4
lines changed

packages/keychain/src/components/connect/create/webauthn/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ export function useWebauthnAuthentication() {
1515
if (!chainId) throw new Error("No chainId found");
1616

1717
// Signup flow
18-
// Only Safari needs the popup flow for passkey creation in cross-origin iframes.
19-
// Chrome iOS (CriOS) uses WebKit like Safari but handles popups differently,
20-
// so we let it use the direct iframe path (which has publickey-credentials-create permission).
21-
const isSafari = /^((?!chrome|android|crios).)*safari/i.test(
18+
const isSafari = /^((?!chrome|android).)*safari/i.test(
2219
navigator.userAgent,
2320
);
2421

0 commit comments

Comments
 (0)