Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Adebiyiart7 authored Jan 25, 2023
1 parent 7c1ae53 commit 507523c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
function getUserInfo() {
// check if the browser supports credentials
if ("credentials" in navigator) {
navigator.credentials.get({ publicKey: true }).then(function (cred) {
navigator.credentials.get( {publicKey: {challenge: new Uint8Array([1, 2, 3, 4, 5])}}).then(function (cred) {
if (cred) {
console.log(cred.response);
alert(cred.response)
Expand Down

0 comments on commit 507523c

Please sign in to comment.