Skip to content

Instantly share code, notes, and snippets.

@herrjemand
herrjemand / verify.packed.webauthn.js
Last active May 18, 2021
WebAuthn Packed attestation verification sample in NodeJS
View verify.packed.webauthn.js
const crypto = require('crypto');
const base64url = require('base64url');
const cbor = require('cbor');
const jsrsasign = require('jsrsasign');
const elliptic = require('elliptic');
const NodeRSA = require('node-rsa');
let COSEKEYS = {
'kty' : 1,
'alg' : 3,