Setting Up WebAuthn
To use WebAuthn, there are two primary steps involved in the authentication flow: registration and authentication. During the registration step, a WebAuthn device is registered for a user, and during the authentication step, an authentication attempt is made. For both registration and authentication, MoonKey provides two requests that developers can use. The first request returns the necessary components to communicate with the WebAuthn device, while the second request is used to pass the response from the WebAuthn call back to MoonKey for verification.Using the webauthn-json library
To make the integration process even smoother, developers can use the webauthn-json library, which is specifically designed to assist with integrating WebAuthn. This library can convert the JSON request into the appropriate data types by unmarshalling and decoding the body, then output marshalled JSON that can be passed back to MoonKey.API Reference
WebAuthn API