Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback to extracting public key from attestationObject on React native #64

Open
julia-script opened this issue Jan 30, 2025 · 0 comments

Comments

@julia-script
Copy link

Hello 👋 ,

React Native doesn't support the crypto library, and currently, even the most complete polyfill importing and exporting ESDSA keys in spki format as seen here https://github.com/margelo/react-native-quick-crypto/blob/e782176c8fd6f2776990ebbea019d35c727a0eee/docs/implementation-coverage.md#subtleexportkey

What I did in my app was to fallback to parsing the public key from attestationObject as you've done for 1password, but I had to reimplement the entire createCredential method because to be able to do that.

I would suggest adding a check for those methods and falling back to parsing attestationObject. I can push a PR myself but I wanted to be sure I'm not missing something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant