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 92cd885 commit d5c3fa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
// Send the assertion to the server for verification
alert(JSON.stringify(assertion))
console.log("assertion", assertion)
console.log(JSON.parse(new TextDecoder().decode(assertion)))
fetch("/verify", {
method: "POST",
body: assertion,
Expand Down Expand Up @@ -61,7 +62,7 @@
}
).then(function (cred) {
if (cred) {
let clientData = JSON.parse(new TextDecoder().decode(cred.response.clientDataJSON));
let clientData = JSON.parse(new TextDecoder().decode(cred.response));
console.log(clientData);
console.log(clientData.user.name);
alert("User Credentials :" + JSON.stringify(cred));
Expand Down

0 comments on commit d5c3fa1

Please sign in to comment.