Skip to content

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

@julia-script

Description

@julia-script

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions