This commit is contained in:
Roland Gruber 2020-01-16 21:18:39 +01:00
parent 1440bf22d6
commit 9a855266ab
1 changed files with 2 additions and 2 deletions

View File

@ -1479,7 +1479,7 @@ window.lam.webauthn.register = function(publicKey, successCallback, errorCallbac
} }
} }
} }
navigator.credentials.create({publicKey}) navigator.credentials.create({publicKey: publicKey})
.then(function (data) { .then(function (data) {
var publicKeyCredential = { var publicKeyCredential = {
id: data.id, id: data.id,
@ -1511,7 +1511,7 @@ window.lam.webauthn.authenticate = function(publicKey) {
var idArray = Uint8Array.from(idOrigDecoded, window.lam.webauthn.charAt) var idArray = Uint8Array.from(idOrigDecoded, window.lam.webauthn.charAt)
publicKey.allowCredentials[i]['id'] = idArray; publicKey.allowCredentials[i]['id'] = idArray;
} }
navigator.credentials.get({publicKey}) navigator.credentials.get({publicKey: publicKey})
.then(function(data) { .then(function(data) {
var publicKeyCredential = { var publicKeyCredential = {
id: data.id, id: data.id,