Webauthn.Registration.Challenge (webauthn v0.0.8)

This module handles the first step of the Webauthn ceremony, creating a challenge so the client can register their device. The generate/1 function outputs a map of 'publicKey' options that will be passed into the browser's navigator.credentials.create method.

Note The 'challenge' value is encoded as a url safe base64 string. In the front end you will need to decode this value and convert to a Uint8Array. We will include some javascript that will walk you through this process in the demo application.

Link to this section Summary

Link to this section Functions

Link to this function

generate(challenge, options)