Resident Key Done #58

This commit is contained in:
Mohamed ElKalioby
2021-11-16 16:59:20 +03:00
parent 7cf2df0a1e
commit 41e105b45b
7 changed files with 36 additions and 7 deletions

View File

@@ -58,8 +58,11 @@
}).then(CBOR.decode).then(function(options) {
console.log(options)
return navigator.credentials.get(options);
}).then(function(assertion) {
console.log(assertion)
res=CBOR.encode({
"userHandle":assertion.id,
"credentialId": new Uint8Array(assertion.rawId),
"authenticatorData": new Uint8Array(assertion.response.authenticatorData),
"clientDataJSON": new Uint8Array(assertion.response.clientDataJSON),