Skip to content

Instantly share code, notes, and snippets.

@truongnmt
Created January 9, 2022 10:01
Show Gist options
  • Save truongnmt/1507e49c31542e5db2873242fcb5adef to your computer and use it in GitHub Desktop.
Save truongnmt/1507e49c31542e5db2873242fcb5adef to your computer and use it in GitHub Desktop.
create_credential.js
function create(callbackUrl, credentialOptions) {
WebAuthnJSON.create({ "publicKey": credentialOptions }).then(function(credential) {
callback(callbackUrl, credential);
}).catch(function(error) {
showMessage(error);
});
console.log("Creating new public key credential...");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment