The examples here call functions defined by the @github/webauthn-json/browser-ponyfill package (available at https://ga.jspm.io/npm:@github/webauthn-json@2.1.0/dist/esm/webauthn-json.browser-ponyfill.js).
Registration endpoints are for signed-in users. Provide the user's JWT as usual.