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
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,13 @@ export default function AuthenticateAndSign({
{ clientPublicKey },
)

// 3. WebAuthn assertion against the Grid-issued challenge. The OS shows
// its biometric prompt regardless of whether we send the real
// 3. WebAuthn assertion against the Grid-issued challenge. The challenge
// is a lowercase hex string; UTF-8 encode it exactly as returned. The
// OS shows its biometric prompt regardless of whether we send the real
// signature or the sandbox magic value below.
const assertion = (await navigator.credentials.get({
publicKey: {
challenge: base64urlToBytes(challenge.challenge),
challenge: new TextEncoder().encode(challenge.challenge),
userVerification: 'required',
timeout: 60_000,
},
Expand Down
Loading