Created
January 9, 2022 10:01
-
-
Save truongnmt/1507e49c31542e5db2873242fcb5adef to your computer and use it in GitHub Desktop.
create_credential.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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