Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Demo/wwwroot/js/usernameless.login.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async function verifyAssertionWithServer(assertedCredential) {
let clientDataJSON = new Uint8Array(assertedCredential.response.clientDataJSON);
let rawId = new Uint8Array(assertedCredential.rawId);
let sig = new Uint8Array(assertedCredential.response.signature);
let userHandle = new Uint8Array(assertedCredential.response.userHandle)
let userHandle = assertedCredential.response.userHandle ? new Uint8Array(assertedCredential.response.userHandle) : null;
const data = {
id: assertedCredential.id,
rawId: coerceToBase64Url(rawId),
Expand All @@ -87,7 +87,7 @@ async function verifyAssertionWithServer(assertedCredential) {
response: {
authenticatorData: coerceToBase64Url(authData),
clientDataJSON: coerceToBase64Url(clientDataJSON),
userHandle: userHandle !== null ? coerceToBase64Url(userHandle): null,
userHandle: userHandle ? coerceToBase64Url(userHandle): null,
signature: coerceToBase64Url(sig)
}
};
Expand Down
Loading