WebKit support #285
Replies: 3 comments 1 reply
-
I haven't done any native iOS dev myself, but my current understanding is that you want to use SFSafariViewController or ASWebAuthenticationSession if you want to use passkeys in your native app. The best advice I have for figuring out how to incorporate these into a React Native project, unfortunately, is to google "react native SFSafariViewController" or "react native ASWebAuthenticationSession". Good luck! I think at a high level there's nothing preventing you from using @simplewebauthn/browser in your React Native project. Your biggest hurdle is to figure out how to get a webview that'll support WebAuthn so that the browser library can do its thing. That's what SFSafariViewController should get you. If you're trying to handle WebAuthn-based auth entirely in native code, though, and are aiming to get a server set up to handle responses then you can use @simplewebauthn/server to parse ASWebAuthenticationSession responses no problem. |
Beta Was this translation helpful? Give feedback.
-
I'm going to turn this into a Discussion for now as it's not reporting an issue with SimpleWebAuthn. |
Beta Was this translation helpful? Give feedback.
-
It strange but Android WebView has no support for WebAuthn at all (in almost 2025 year). apache/cordova-android#1743 It seems that this affects all cordova and react native projects that use WebView. iOS embedded WebView fully supports the WebView protocol, only the associated domains must be added correctly https://developer.apple.com/documentation/xcode/supporting-associated-domains |
Beta Was this translation helpful? Give feedback.
-
hello, any idea if this is supported inside a webview react native
Beta Was this translation helpful? Give feedback.
All reactions