Webauthn.Registration.Challenge (webauthn v0.0.9)

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.

Summary

Functions

Link to this function

generate(challenge, options)