peterferguson/react-native-passkeys

Example: obtain public key

Closed this issue · 5 comments

Hello, I am using it in expo "web" environment.
How to obtain the public key from RegistrationResponseJSON ?
Thanks

With the current API it is not possible without a patch.

I will try get around to adding it on each platform soon, but in the meantime if you are only looking for the web environment you can use this patch

If you need the public key on other platforms it can be derived from the currently returned data

@jamesmccomish prs are welcome 😆

With the current API it is not possible without a patch.

I will try get around to adding it on each platform soon, but in the meantime if you are only looking for the web environment you can use this patch

Thank you. I need it for iOS and Android also.

If you need the public key on other platforms it can be derived from the currently returned data

Is there an example for this?
And does it change for each platform or is it the same for iOS and Android and web?

A getPublicKey method has been added in v0.3.0