From 617d053527b5064b570ce7824bf2c5f1d9316e86 Mon Sep 17 00:00:00 2001 From: Paul Taiwo Date: Sat, 25 Jan 2025 06:00:30 +0100 Subject: [PATCH] chore: untrack coverage --- .gitignore | 3 +- coverage/clover.xml | 240 ------ coverage/coverage-final.json | 7 - .../lcov-report/authenticatorMetadata.ts.html | 631 --------------- coverage/lcov-report/authenticators.ts.html | 217 ----- coverage/lcov-report/base.css | 224 ------ coverage/lcov-report/block-navigation.js | 87 -- coverage/lcov-report/client.ts.html | 757 ------------------ coverage/lcov-report/favicon.png | Bin 445 -> 0 bytes coverage/lcov-report/index.html | 191 ----- coverage/lcov-report/index.ts.html | 115 --- coverage/lcov-report/parsers.ts.html | 457 ----------- coverage/lcov-report/prettify.css | 1 - coverage/lcov-report/prettify.js | 2 - coverage/lcov-report/server.ts.html | 445 ---------- coverage/lcov-report/sort-arrow-sprite.png | Bin 138 -> 0 bytes coverage/lcov-report/sorter.js | 196 ----- coverage/lcov-report/utils.ts.html | 538 ------------- coverage/lcov.info | 425 ---------- 19 files changed, 2 insertions(+), 4534 deletions(-) delete mode 100644 coverage/clover.xml delete mode 100644 coverage/coverage-final.json delete mode 100644 coverage/lcov-report/authenticatorMetadata.ts.html delete mode 100644 coverage/lcov-report/authenticators.ts.html delete mode 100644 coverage/lcov-report/base.css delete mode 100644 coverage/lcov-report/block-navigation.js delete mode 100644 coverage/lcov-report/client.ts.html delete mode 100644 coverage/lcov-report/favicon.png delete mode 100644 coverage/lcov-report/index.html delete mode 100644 coverage/lcov-report/index.ts.html delete mode 100644 coverage/lcov-report/parsers.ts.html delete mode 100644 coverage/lcov-report/prettify.css delete mode 100644 coverage/lcov-report/prettify.js delete mode 100644 coverage/lcov-report/server.ts.html delete mode 100644 coverage/lcov-report/sort-arrow-sprite.png delete mode 100644 coverage/lcov-report/sorter.js delete mode 100644 coverage/lcov-report/utils.ts.html delete mode 100644 coverage/lcov.info diff --git a/.gitignore b/.gitignore index 5b5360d..b66bc54 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ /docs/authenticators /site /authenticators -/misc/authenticators \ No newline at end of file +/misc/authenticators +/coverage \ No newline at end of file diff --git a/coverage/clover.xml b/coverage/clover.xml deleted file mode 100644 index 0e33dc5..0000000 --- a/coverage/clover.xml +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/coverage/coverage-final.json b/coverage/coverage-final.json deleted file mode 100644 index 8205ba3..0000000 --- a/coverage/coverage-final.json +++ /dev/null @@ -1,7 +0,0 @@ -{"/Users/pauladedokun/Documents/others/webauthn/src/authenticatorMetadata.ts": {"path":"/Users/pauladedokun/Documents/others/webauthn/src/authenticatorMetadata.ts","statementMap":{"0":{"start":{"line":8,"column":13},"end":{"line":183,"column":null}}},"fnMap":{},"branchMap":{},"s":{"0":2},"f":{},"b":{}} -,"/Users/pauladedokun/Documents/others/webauthn/src/client.ts": {"path":"/Users/pauladedokun/Documents/others/webauthn/src/client.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":32}},"1":{"start":{"line":8,"column":4},"end":{"line":8,"column":null}},"2":{"start":{"line":7,"column":0},"end":{"line":7,"column":16}},"3":{"start":{"line":15,"column":4},"end":{"line":15,"column":null}},"4":{"start":{"line":14,"column":0},"end":{"line":14,"column":7}},"5":{"start":{"line":24,"column":4},"end":{"line":25,"column":25}},"6":{"start":{"line":25,"column":8},"end":{"line":25,"column":25}},"7":{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},"8":{"start":{"line":28,"column":8},"end":{"line":31,"column":30}},"9":{"start":{"line":29,"column":12},"end":{"line":29,"column":29}},"10":{"start":{"line":31,"column":12},"end":{"line":31,"column":30}},"11":{"start":{"line":33,"column":4},"end":{"line":33,"column":28}},"12":{"start":{"line":41,"column":42},"end":{"line":41,"column":46}},"13":{"start":{"line":59,"column":4},"end":{"line":60,"column":null}},"14":{"start":{"line":60,"column":8},"end":{"line":60,"column":null}},"15":{"start":{"line":62,"column":4},"end":{"line":63,"column":null}},"16":{"start":{"line":63,"column":8},"end":{"line":63,"column":null}},"17":{"start":{"line":65,"column":4},"end":{"line":66,"column":null}},"18":{"start":{"line":66,"column":8},"end":{"line":66,"column":null}},"19":{"start":{"line":68,"column":23},"end":{"line":68,"column":97}},"20":{"start":{"line":69,"column":4},"end":{"line":70,"column":null}},"21":{"start":{"line":70,"column":8},"end":{"line":70,"column":null}},"22":{"start":{"line":72,"column":51},"end":{"line":96,"column":null}},"23":{"start":{"line":98,"column":4},"end":{"line":98,"column":null}},"24":{"start":{"line":100,"column":4},"end":{"line":101,"column":null}},"25":{"start":{"line":101,"column":8},"end":{"line":101,"column":null}},"26":{"start":{"line":102,"column":4},"end":{"line":102,"column":40}},"27":{"start":{"line":104,"column":16},"end":{"line":107,"column":29}},"28":{"start":{"line":108,"column":21},"end":{"line":108,"column":69}},"29":{"start":{"line":110,"column":4},"end":{"line":110,"column":23}},"30":{"start":{"line":112,"column":4},"end":{"line":112,"column":null}},"31":{"start":{"line":114,"column":4},"end":{"line":115,"column":44}},"32":{"start":{"line":115,"column":8},"end":{"line":115,"column":44}},"33":{"start":{"line":117,"column":22},"end":{"line":117,"column":45}},"34":{"start":{"line":118,"column":4},"end":{"line":119,"column":null}},"35":{"start":{"line":119,"column":8},"end":{"line":119,"column":null}},"36":{"start":{"line":122,"column":35},"end":{"line":137,"column":null}},"37":{"start":{"line":138,"column":4},"end":{"line":138,"column":null}},"38":{"start":{"line":57,"column":0},"end":{"line":57,"column":7}},"39":{"start":{"line":142,"column":4},"end":{"line":142,"column":120}},"40":{"start":{"line":141,"column":0},"end":{"line":141,"column":7}},"41":{"start":{"line":155,"column":4},"end":{"line":156,"column":null}},"42":{"start":{"line":156,"column":8},"end":{"line":156,"column":null}},"43":{"start":{"line":158,"column":4},"end":{"line":159,"column":null}},"44":{"start":{"line":159,"column":8},"end":{"line":159,"column":null}},"45":{"start":{"line":161,"column":42},"end":{"line":168,"column":null}},"46":{"start":{"line":170,"column":4},"end":{"line":170,"column":null}},"47":{"start":{"line":172,"column":4},"end":{"line":173,"column":null}},"48":{"start":{"line":173,"column":8},"end":{"line":173,"column":null}},"49":{"start":{"line":175,"column":4},"end":{"line":175,"column":40}},"50":{"start":{"line":177,"column":16},"end":{"line":181,"column":29}},"51":{"start":{"line":183,"column":4},"end":{"line":184,"column":44}},"52":{"start":{"line":184,"column":8},"end":{"line":184,"column":44}},"53":{"start":{"line":186,"column":4},"end":{"line":186,"column":23}},"54":{"start":{"line":188,"column":4},"end":{"line":188,"column":null}},"55":{"start":{"line":190,"column":21},"end":{"line":190,"column":67}},"56":{"start":{"line":193,"column":37},"end":{"line":205,"column":null}},"57":{"start":{"line":207,"column":4},"end":{"line":207,"column":null}},"58":{"start":{"line":154,"column":0},"end":{"line":154,"column":7}},"59":{"start":{"line":211,"column":4},"end":{"line":223,"column":5}},"60":{"start":{"line":212,"column":8},"end":{"line":215,"column":null}},"61":{"start":{"line":218,"column":8},"end":{"line":222,"column":null}}},"fnMap":{"0":{"name":"isAvailable","decl":{"start":{"line":7,"column":16},"end":{"line":7,"column":27}},"loc":{"start":{"line":7,"column":27},"end":{"line":9,"column":1}}},"1":{"name":"isLocalAuthenticator","decl":{"start":{"line":14,"column":22},"end":{"line":14,"column":42}},"loc":{"start":{"line":14,"column":42},"end":{"line":16,"column":1}}},"2":{"name":"getAuthAttachment","decl":{"start":{"line":23,"column":9},"end":{"line":23,"column":26}},"loc":{"start":{"line":23,"column":61},"end":{"line":34,"column":1}}},"3":{"name":"register","decl":{"start":{"line":57,"column":22},"end":{"line":57,"column":30}},"loc":{"start":{"line":57,"column":55},"end":{"line":139,"column":1}}},"4":{"name":"isAutocompleteAvailable","decl":{"start":{"line":141,"column":22},"end":{"line":141,"column":45}},"loc":{"start":{"line":141,"column":45},"end":{"line":143,"column":1}}},"5":{"name":"authenticate","decl":{"start":{"line":154,"column":22},"end":{"line":154,"column":34}},"loc":{"start":{"line":154,"column":63},"end":{"line":208,"column":1}}},"6":{"name":"toPublicKeyCredentialDescriptor","decl":{"start":{"line":210,"column":9},"end":{"line":210,"column":40}},"loc":{"start":{"line":210,"column":85},"end":{"line":224,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":24,"column":4},"end":{"line":25,"column":25}},"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":25,"column":25}}]},"1":{"loc":{"start":{"line":24,"column":8},"end":{"line":24,"column":36}},"type":"binary-expr","locations":[{"start":{"line":24,"column":8},"end":{"line":24,"column":14}},{"start":{"line":24,"column":18},"end":{"line":24,"column":36}}]},"2":{"loc":{"start":{"line":27,"column":4},"end":{"line":32,"column":5}},"type":"if","locations":[{"start":{"line":27,"column":4},"end":{"line":32,"column":5}}]},"3":{"loc":{"start":{"line":28,"column":8},"end":{"line":31,"column":30}},"type":"if","locations":[{"start":{"line":28,"column":8},"end":{"line":31,"column":30}},{"start":{"line":31,"column":12},"end":{"line":31,"column":30}}]},"4":{"loc":{"start":{"line":28,"column":12},"end":{"line":28,"column":70}},"type":"binary-expr","locations":[{"start":{"line":28,"column":12},"end":{"line":28,"column":42}},{"start":{"line":28,"column":46},"end":{"line":28,"column":70}}]},"5":{"loc":{"start":{"line":59,"column":4},"end":{"line":60,"column":null}},"type":"if","locations":[{"start":{"line":59,"column":4},"end":{"line":60,"column":null}}]},"6":{"loc":{"start":{"line":62,"column":4},"end":{"line":63,"column":null}},"type":"if","locations":[{"start":{"line":62,"column":4},"end":{"line":63,"column":null}}]},"7":{"loc":{"start":{"line":65,"column":4},"end":{"line":66,"column":null}},"type":"if","locations":[{"start":{"line":65,"column":4},"end":{"line":66,"column":null}}]},"8":{"loc":{"start":{"line":68,"column":23},"end":{"line":68,"column":97}},"type":"cond-expr","locations":[{"start":{"line":68,"column":60},"end":{"line":68,"column":82}},{"start":{"line":68,"column":85},"end":{"line":68,"column":97}}]},"9":{"loc":{"start":{"line":69,"column":4},"end":{"line":70,"column":null}},"type":"if","locations":[{"start":{"line":69,"column":4},"end":{"line":70,"column":null}}]},"10":{"loc":{"start":{"line":75,"column":16},"end":{"line":75,"column":58}},"type":"binary-expr","locations":[{"start":{"line":75,"column":16},"end":{"line":75,"column":30}},{"start":{"line":75,"column":34},"end":{"line":75,"column":58}}]},"11":{"loc":{"start":{"line":76,"column":18},"end":{"line":76,"column":60}},"type":"binary-expr","locations":[{"start":{"line":76,"column":18},"end":{"line":76,"column":32}},{"start":{"line":76,"column":36},"end":{"line":76,"column":60}}]},"12":{"loc":{"start":{"line":81,"column":25},"end":{"line":81,"column":54}},"type":"binary-expr","locations":[{"start":{"line":81,"column":25},"end":{"line":81,"column":41}},{"start":{"line":81,"column":45},"end":{"line":81,"column":54}}]},"13":{"loc":{"start":{"line":92,"column":25},"end":{"line":92,"column":60}},"type":"binary-expr","locations":[{"start":{"line":92,"column":25},"end":{"line":92,"column":45}},{"start":{"line":92,"column":49},"end":{"line":92,"column":60}}]},"14":{"loc":{"start":{"line":100,"column":4},"end":{"line":101,"column":null}},"type":"if","locations":[{"start":{"line":100,"column":4},"end":{"line":101,"column":null}}]},"15":{"loc":{"start":{"line":114,"column":4},"end":{"line":115,"column":44}},"type":"if","locations":[{"start":{"line":114,"column":4},"end":{"line":115,"column":44}}]},"16":{"loc":{"start":{"line":118,"column":4},"end":{"line":119,"column":null}},"type":"if","locations":[{"start":{"line":118,"column":4},"end":{"line":119,"column":null}}]},"17":{"loc":{"start":{"line":142,"column":11},"end":{"line":142,"column":119}},"type":"binary-expr","locations":[{"start":{"line":142,"column":11},"end":{"line":142,"column":62}},{"start":{"line":142,"column":66},"end":{"line":142,"column":119}}]},"18":{"loc":{"start":{"line":155,"column":4},"end":{"line":156,"column":null}},"type":"if","locations":[{"start":{"line":155,"column":4},"end":{"line":156,"column":null}}]},"19":{"loc":{"start":{"line":158,"column":4},"end":{"line":159,"column":null}},"type":"if","locations":[{"start":{"line":158,"column":4},"end":{"line":159,"column":null}}]},"20":{"loc":{"start":{"line":158,"column":8},"end":{"line":158,"column":66}},"type":"binary-expr","locations":[{"start":{"line":158,"column":8},"end":{"line":158,"column":28}},{"start":{"line":158,"column":32},"end":{"line":158,"column":66}}]},"21":{"loc":{"start":{"line":163,"column":14},"end":{"line":163,"column":56}},"type":"binary-expr","locations":[{"start":{"line":163,"column":14},"end":{"line":163,"column":28}},{"start":{"line":163,"column":32},"end":{"line":163,"column":56}}]},"22":{"loc":{"start":{"line":172,"column":4},"end":{"line":173,"column":null}},"type":"if","locations":[{"start":{"line":172,"column":4},"end":{"line":173,"column":null}}]},"23":{"loc":{"start":{"line":179,"column":19},"end":{"line":179,"column":67}},"type":"cond-expr","locations":[{"start":{"line":179,"column":42},"end":{"line":179,"column":55}},{"start":{"line":179,"column":58},"end":{"line":179,"column":67}}]},"24":{"loc":{"start":{"line":183,"column":4},"end":{"line":184,"column":44}},"type":"if","locations":[{"start":{"line":183,"column":4},"end":{"line":184,"column":44}}]},"25":{"loc":{"start":{"line":203,"column":24},"end":{"line":203,"column":96}},"type":"cond-expr","locations":[{"start":{"line":203,"column":46},"end":{"line":203,"column":84}},{"start":{"line":203,"column":87},"end":{"line":203,"column":96}}]},"26":{"loc":{"start":{"line":211,"column":4},"end":{"line":223,"column":5}},"type":"if","locations":[{"start":{"line":211,"column":4},"end":{"line":223,"column":5}},{"start":{"line":217,"column":9},"end":{"line":223,"column":5}}]}},"s":{"0":3,"1":2,"2":3,"3":2,"4":3,"5":6,"6":6,"7":0,"8":0,"9":0,"10":0,"11":0,"12":3,"13":9,"14":1,"15":8,"16":1,"17":7,"18":1,"19":6,"20":6,"21":3,"22":6,"23":6,"24":6,"25":1,"26":6,"27":6,"28":5,"29":5,"30":5,"31":5,"32":1,"33":4,"34":4,"35":1,"36":3,"37":3,"38":3,"39":3,"40":3,"41":6,"42":1,"43":5,"44":1,"45":4,"46":4,"47":4,"48":2,"49":4,"50":4,"51":3,"52":1,"53":2,"54":2,"55":2,"56":2,"57":2,"58":3,"59":1,"60":0,"61":1},"f":{"0":2,"1":2,"2":6,"3":9,"4":3,"5":6,"6":1},"b":{"0":[6],"1":[6,0],"2":[0],"3":[0,0],"4":[0,0],"5":[1],"6":[1],"7":[1],"8":[0,6],"9":[3],"10":[6,6],"11":[6,6],"12":[6,6],"13":[6,6],"14":[1],"15":[1],"16":[1],"17":[3,3],"18":[1],"19":[1],"20":[5,1],"21":[4,4],"22":[2],"23":[0,4],"24":[1],"25":[1,1],"26":[0,1]}} -,"/Users/pauladedokun/Documents/others/webauthn/src/index.ts": {"path":"/Users/pauladedokun/Documents/others/webauthn/src/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"1":{"start":{"line":7,"column":9},"end":{"line":7,"column":15}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":35}},"3":{"start":{"line":7,"column":17},"end":{"line":7,"column":23}},"4":{"start":{"line":3,"column":0},"end":{"line":3,"column":37}},"5":{"start":{"line":7,"column":25},"end":{"line":7,"column":32}},"6":{"start":{"line":4,"column":0},"end":{"line":4,"column":33}},"7":{"start":{"line":7,"column":34},"end":{"line":7,"column":39}},"8":{"start":{"line":5,"column":0},"end":{"line":5,"column":9}},"9":{"start":{"line":7,"column":41},"end":{"line":5,"column":63}},"10":{"start":{"line":9,"column":17},"end":{"line":9,"column":74}},"11":{"start":{"line":10,"column":0},"end":{"line":10,"column":null}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":7,"column":41},"end":{"line":7,"column":62}},"loc":{"start":{"line":7,"column":41},"end":{"line":5,"column":63}}}},"branchMap":{},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":2,"10":2,"11":2},"f":{"0":0},"b":{}} -,"/Users/pauladedokun/Documents/others/webauthn/src/parsers.ts": {"path":"/Users/pauladedokun/Documents/others/webauthn/src/parsers.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":63}},"2":{"start":{"line":5,"column":20},"end":{"line":5,"column":44}},"3":{"start":{"line":22,"column":4},"end":{"line":23,"column":null}},"4":{"start":{"line":23,"column":8},"end":{"line":23,"column":null}},"5":{"start":{"line":24,"column":4},"end":{"line":24,"column":null}},"6":{"start":{"line":21,"column":0},"end":{"line":21,"column":16}},"7":{"start":{"line":29,"column":4},"end":{"line":30,"column":null}},"8":{"start":{"line":30,"column":8},"end":{"line":30,"column":null}},"9":{"start":{"line":33,"column":16},"end":{"line":33,"column":63}},"10":{"start":{"line":37,"column":4},"end":{"line":52,"column":null}},"11":{"start":{"line":28,"column":0},"end":{"line":28,"column":16}},"12":{"start":{"line":56,"column":4},"end":{"line":56,"column":null}},"13":{"start":{"line":63,"column":4},"end":{"line":64,"column":null}},"14":{"start":{"line":64,"column":8},"end":{"line":64,"column":null}},"15":{"start":{"line":65,"column":19},"end":{"line":65,"column":41}},"16":{"start":{"line":66,"column":16},"end":{"line":66,"column":41}},"17":{"start":{"line":67,"column":27},"end":{"line":67,"column":145}},"18":{"start":{"line":68,"column":4},"end":{"line":68,"column":18}},"19":{"start":{"line":74,"column":4},"end":{"line":79,"column":5}},"20":{"start":{"line":75,"column":17},"end":{"line":75,"column":null}},"21":{"start":{"line":76,"column":17},"end":{"line":76,"column":null}},"22":{"start":{"line":77,"column":19},"end":{"line":77,"column":null}},"23":{"start":{"line":78,"column":17},"end":{"line":78,"column":null}},"24":{"start":{"line":73,"column":0},"end":{"line":73,"column":16}},"25":{"start":{"line":84,"column":26},"end":{"line":84,"column":89}},"26":{"start":{"line":85,"column":4},"end":{"line":85,"column":63}},"27":{"start":{"line":83,"column":0},"end":{"line":83,"column":16}},"28":{"start":{"line":89,"column":19},"end":{"line":89,"column":39}},"29":{"start":{"line":90,"column":4},"end":{"line":107,"column":null}},"30":{"start":{"line":88,"column":0},"end":{"line":88,"column":16}},"31":{"start":{"line":111,"column":4},"end":{"line":117,"column":null}},"32":{"start":{"line":110,"column":0},"end":{"line":110,"column":16}},"33":{"start":{"line":122,"column":26},"end":{"line":122,"column":91}},"34":{"start":{"line":123,"column":4},"end":{"line":123,"column":67}},"35":{"start":{"line":121,"column":0},"end":{"line":121,"column":16}}},"fnMap":{"0":{"name":"parseClient","decl":{"start":{"line":21,"column":16},"end":{"line":21,"column":27}},"loc":{"start":{"line":21,"column":61},"end":{"line":25,"column":1}}},"1":{"name":"parseAuthenticator","decl":{"start":{"line":28,"column":16},"end":{"line":28,"column":34}},"loc":{"start":{"line":28,"column":72},"end":{"line":53,"column":1}}},"2":{"name":"extractRpIdHash","decl":{"start":{"line":55,"column":9},"end":{"line":55,"column":24}},"loc":{"start":{"line":55,"column":46},"end":{"line":57,"column":1}}},"3":{"name":"extractAaguid","decl":{"start":{"line":62,"column":9},"end":{"line":62,"column":22}},"loc":{"start":{"line":62,"column":44},"end":{"line":69,"column":1}}},"4":{"name":"getAlgoName","decl":{"start":{"line":73,"column":16},"end":{"line":73,"column":27}},"loc":{"start":{"line":73,"column":56},"end":{"line":80,"column":1}}},"5":{"name":"parseRegistration","decl":{"start":{"line":83,"column":16},"end":{"line":83,"column":33}},"loc":{"start":{"line":83,"column":68},"end":{"line":86,"column":1}}},"6":{"name":"toRegistrationInfo","decl":{"start":{"line":88,"column":16},"end":{"line":88,"column":34}},"loc":{"start":{"line":88,"column":105},"end":{"line":108,"column":1}}},"7":{"name":"toAuthenticationInfo","decl":{"start":{"line":110,"column":16},"end":{"line":110,"column":36}},"loc":{"start":{"line":110,"column":111},"end":{"line":118,"column":1}}},"8":{"name":"parseAuthentication","decl":{"start":{"line":121,"column":16},"end":{"line":121,"column":35}},"loc":{"start":{"line":121,"column":74},"end":{"line":124,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":22,"column":4},"end":{"line":23,"column":null}},"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":23,"column":null}}]},"1":{"loc":{"start":{"line":29,"column":4},"end":{"line":30,"column":null}},"type":"if","locations":[{"start":{"line":29,"column":4},"end":{"line":30,"column":null}}]},"2":{"loc":{"start":{"line":63,"column":4},"end":{"line":64,"column":null}},"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":64,"column":null}}]},"3":{"loc":{"start":{"line":74,"column":4},"end":{"line":79,"column":5}},"type":"switch","locations":[{"start":{"line":75,"column":8},"end":{"line":75,"column":null}},{"start":{"line":76,"column":8},"end":{"line":76,"column":null}},{"start":{"line":77,"column":8},"end":{"line":77,"column":null}},{"start":{"line":78,"column":8},"end":{"line":78,"column":null}}]},"4":{"loc":{"start":{"line":96,"column":18},"end":{"line":96,"column":60}},"type":"binary-expr","locations":[{"start":{"line":96,"column":18},"end":{"line":96,"column":47}},{"start":{"line":96,"column":51},"end":{"line":96,"column":60}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":3,"8":3,"9":3,"10":3,"11":1,"12":3,"13":3,"14":0,"15":3,"16":3,"17":3,"18":3,"19":5,"20":2,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1},"f":{"0":1,"1":3,"2":3,"3":3,"4":5,"5":1,"6":1,"7":1,"8":1},"b":{"0":[1],"1":[3],"2":[0],"3":[2,1,1,1],"4":[1,1]}} -,"/Users/pauladedokun/Documents/others/webauthn/src/server.ts": {"path":"/Users/pauladedokun/Documents/others/webauthn/src/server.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":82}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":32}},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":42}},"4":{"start":{"line":9,"column":19},"end":{"line":9,"column":61}},"5":{"start":{"line":10,"column":4},"end":{"line":10,"column":37}},"6":{"start":{"line":8,"column":0},"end":{"line":8,"column":16}},"7":{"start":{"line":16,"column":3},"end":{"line":22,"column":5}},"8":{"start":{"line":17,"column":20},"end":{"line":17,"column":36}},"9":{"start":{"line":18,"column":8},"end":{"line":21,"column":null}},"10":{"start":{"line":19,"column":12},"end":{"line":19,"column":null}},"11":{"start":{"line":21,"column":12},"end":{"line":21,"column":null}},"12":{"start":{"line":24,"column":4},"end":{"line":24,"column":null}},"13":{"start":{"line":28,"column":4},"end":{"line":28,"column":null}},"14":{"start":{"line":39,"column":19},"end":{"line":39,"column":72}},"15":{"start":{"line":40,"column":26},"end":{"line":40,"column":89}},"16":{"start":{"line":41,"column":19},"end":{"line":41,"column":39}},"17":{"start":{"line":43,"column":4},"end":{"line":44,"column":null}},"18":{"start":{"line":44,"column":8},"end":{"line":44,"column":null}},"19":{"start":{"line":46,"column":4},"end":{"line":47,"column":null}},"20":{"start":{"line":47,"column":8},"end":{"line":47,"column":null}},"21":{"start":{"line":49,"column":4},"end":{"line":50,"column":null}},"22":{"start":{"line":50,"column":8},"end":{"line":50,"column":null}},"23":{"start":{"line":52,"column":4},"end":{"line":53,"column":null}},"24":{"start":{"line":53,"column":8},"end":{"line":53,"column":null}},"25":{"start":{"line":55,"column":4},"end":{"line":55,"column":null}},"26":{"start":{"line":38,"column":0},"end":{"line":38,"column":7}},"27":{"start":{"line":72,"column":4},"end":{"line":73,"column":null}},"28":{"start":{"line":73,"column":8},"end":{"line":73,"column":null}},"29":{"start":{"line":75,"column":38},"end":{"line":82,"column":6}},"30":{"start":{"line":84,"column":4},"end":{"line":85,"column":null}},"31":{"start":{"line":85,"column":8},"end":{"line":85,"column":null}},"32":{"start":{"line":87,"column":40},"end":{"line":87,"column":95}},"33":{"start":{"line":88,"column":47},"end":{"line":88,"column":112}},"34":{"start":{"line":90,"column":4},"end":{"line":93,"column":5}},"35":{"start":{"line":91,"column":8},"end":{"line":91,"column":null}},"36":{"start":{"line":92,"column":8},"end":{"line":92,"column":null}},"37":{"start":{"line":95,"column":4},"end":{"line":96,"column":null}},"38":{"start":{"line":96,"column":8},"end":{"line":96,"column":null}},"39":{"start":{"line":98,"column":4},"end":{"line":99,"column":null}},"40":{"start":{"line":99,"column":8},"end":{"line":99,"column":null}},"41":{"start":{"line":101,"column":4},"end":{"line":102,"column":null}},"42":{"start":{"line":102,"column":8},"end":{"line":102,"column":null}},"43":{"start":{"line":105,"column":17},"end":{"line":105,"column":67}},"44":{"start":{"line":106,"column":29},"end":{"line":106,"column":88}},"45":{"start":{"line":107,"column":4},"end":{"line":108,"column":null}},"46":{"start":{"line":108,"column":8},"end":{"line":108,"column":null}},"47":{"start":{"line":110,"column":4},"end":{"line":111,"column":null}},"48":{"start":{"line":111,"column":8},"end":{"line":111,"column":null}},"49":{"start":{"line":113,"column":4},"end":{"line":114,"column":null}},"50":{"start":{"line":114,"column":8},"end":{"line":114,"column":null}},"51":{"start":{"line":116,"column":4},"end":{"line":117,"column":null}},"52":{"start":{"line":117,"column":8},"end":{"line":117,"column":null}},"53":{"start":{"line":119,"column":4},"end":{"line":119,"column":null}},"54":{"start":{"line":71,"column":0},"end":{"line":71,"column":7}}},"fnMap":{"0":{"name":"randomChallenge","decl":{"start":{"line":8,"column":16},"end":{"line":8,"column":31}},"loc":{"start":{"line":8,"column":31},"end":{"line":11,"column":1}}},"1":{"name":"isValid","decl":{"start":{"line":15,"column":15},"end":{"line":15,"column":22}},"loc":{"start":{"line":15,"column":49},"end":{"line":25,"column":1}}},"2":{"name":"isNotValid","decl":{"start":{"line":27,"column":15},"end":{"line":27,"column":25}},"loc":{"start":{"line":27,"column":52},"end":{"line":29,"column":1}}},"3":{"name":"verifyRegistration","decl":{"start":{"line":38,"column":22},"end":{"line":38,"column":40}},"loc":{"start":{"line":38,"column":105},"end":{"line":56,"column":1}}},"4":{"name":"verifyAuthentication","decl":{"start":{"line":71,"column":22},"end":{"line":71,"column":42}},"loc":{"start":{"line":71,"column":141},"end":{"line":120,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":16,"column":3},"end":{"line":22,"column":5}},"type":"if","locations":[{"start":{"line":16,"column":3},"end":{"line":22,"column":5}}]},"1":{"loc":{"start":{"line":18,"column":8},"end":{"line":21,"column":null}},"type":"if","locations":[{"start":{"line":18,"column":8},"end":{"line":21,"column":null}},{"start":{"line":21,"column":12},"end":{"line":21,"column":null}}]},"2":{"loc":{"start":{"line":43,"column":4},"end":{"line":44,"column":null}},"type":"if","locations":[{"start":{"line":43,"column":4},"end":{"line":44,"column":null}}]},"3":{"loc":{"start":{"line":46,"column":4},"end":{"line":47,"column":null}},"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":47,"column":null}}]},"4":{"loc":{"start":{"line":49,"column":4},"end":{"line":50,"column":null}},"type":"if","locations":[{"start":{"line":49,"column":4},"end":{"line":50,"column":null}}]},"5":{"loc":{"start":{"line":52,"column":4},"end":{"line":53,"column":null}},"type":"if","locations":[{"start":{"line":52,"column":4},"end":{"line":53,"column":null}}]},"6":{"loc":{"start":{"line":72,"column":4},"end":{"line":73,"column":null}},"type":"if","locations":[{"start":{"line":72,"column":4},"end":{"line":73,"column":null}}]},"7":{"loc":{"start":{"line":84,"column":4},"end":{"line":85,"column":null}},"type":"if","locations":[{"start":{"line":84,"column":4},"end":{"line":85,"column":null}}]},"8":{"loc":{"start":{"line":90,"column":4},"end":{"line":93,"column":5}},"type":"if","locations":[{"start":{"line":90,"column":4},"end":{"line":93,"column":5}}]},"9":{"loc":{"start":{"line":95,"column":4},"end":{"line":96,"column":null}},"type":"if","locations":[{"start":{"line":95,"column":4},"end":{"line":96,"column":null}}]},"10":{"loc":{"start":{"line":98,"column":4},"end":{"line":99,"column":null}},"type":"if","locations":[{"start":{"line":98,"column":4},"end":{"line":99,"column":null}}]},"11":{"loc":{"start":{"line":101,"column":4},"end":{"line":102,"column":null}},"type":"if","locations":[{"start":{"line":101,"column":4},"end":{"line":102,"column":null}}]},"12":{"loc":{"start":{"line":105,"column":17},"end":{"line":105,"column":67}},"type":"binary-expr","locations":[{"start":{"line":105,"column":17},"end":{"line":105,"column":32}},{"start":{"line":105,"column":36},"end":{"line":105,"column":67}}]},"13":{"loc":{"start":{"line":107,"column":4},"end":{"line":108,"column":null}},"type":"if","locations":[{"start":{"line":107,"column":4},"end":{"line":108,"column":null}}]},"14":{"loc":{"start":{"line":110,"column":4},"end":{"line":111,"column":null}},"type":"if","locations":[{"start":{"line":110,"column":4},"end":{"line":111,"column":null}}]},"15":{"loc":{"start":{"line":113,"column":4},"end":{"line":114,"column":null}},"type":"if","locations":[{"start":{"line":113,"column":4},"end":{"line":114,"column":null}}]},"16":{"loc":{"start":{"line":113,"column":8},"end":{"line":113,"column":66}},"type":"binary-expr","locations":[{"start":{"line":113,"column":8},"end":{"line":113,"column":41}},{"start":{"line":113,"column":45},"end":{"line":113,"column":66}}]},"17":{"loc":{"start":{"line":116,"column":4},"end":{"line":117,"column":null}},"type":"if","locations":[{"start":{"line":116,"column":4},"end":{"line":117,"column":null}}]},"18":{"loc":{"start":{"line":116,"column":8},"end":{"line":116,"column":71}},"type":"binary-expr","locations":[{"start":{"line":116,"column":8},"end":{"line":116,"column":24}},{"start":{"line":116,"column":28},"end":{"line":116,"column":71}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":1,"5":1,"6":2,"7":20,"8":0,"9":0,"10":0,"11":0,"12":20,"13":20,"14":5,"15":5,"16":5,"17":5,"18":1,"19":4,"20":1,"21":3,"22":1,"23":2,"24":1,"25":1,"26":2,"27":11,"28":1,"29":10,"30":10,"31":1,"32":9,"33":9,"34":9,"35":1,"36":1,"37":9,"38":1,"39":8,"40":1,"41":7,"42":1,"43":6,"44":6,"45":6,"46":1,"47":5,"48":1,"49":4,"50":1,"51":3,"52":2,"53":1,"54":2},"f":{"0":1,"1":20,"2":20,"3":5,"4":11},"b":{"0":[0],"1":[0,0],"2":[1],"3":[1],"4":[1],"5":[1],"6":[1],"7":[1],"8":[1],"9":[1],"10":[1],"11":[1],"12":[6,5],"13":[1],"14":[1],"15":[1],"16":[4,1],"17":[2],"18":[3,2]}} -,"/Users/pauladedokun/Documents/others/webauthn/src/utils.ts": {"path":"/Users/pauladedokun/Documents/others/webauthn/src/utils.ts","statementMap":{"0":{"start":{"line":9,"column":4},"end":{"line":9,"column":null}},"1":{"start":{"line":9,"column":37},"end":{"line":9,"column":52}},"2":{"start":{"line":8,"column":0},"end":{"line":8,"column":16}},"3":{"start":{"line":13,"column":4},"end":{"line":13,"column":null}},"4":{"start":{"line":12,"column":0},"end":{"line":12,"column":16}},"5":{"start":{"line":18,"column":4},"end":{"line":18,"column":null}},"6":{"start":{"line":17,"column":0},"end":{"line":17,"column":16}},"7":{"start":{"line":22,"column":16},"end":{"line":22,"column":41}},"8":{"start":{"line":23,"column":4},"end":{"line":23,"column":null}},"9":{"start":{"line":21,"column":0},"end":{"line":21,"column":16}},"10":{"start":{"line":27,"column":4},"end":{"line":27,"column":56}},"11":{"start":{"line":28,"column":4},"end":{"line":28,"column":null}},"12":{"start":{"line":26,"column":0},"end":{"line":26,"column":16}},"13":{"start":{"line":33,"column":4},"end":{"line":33,"column":null}},"14":{"start":{"line":32,"column":0},"end":{"line":32,"column":7}},"15":{"start":{"line":37,"column":4},"end":{"line":39,"column":19}},"16":{"start":{"line":38,"column":19},"end":{"line":38,"column":52}},"17":{"start":{"line":36,"column":0},"end":{"line":36,"column":16}},"18":{"start":{"line":44,"column":14},"end":{"line":44,"column":69}},"19":{"start":{"line":45,"column":4},"end":{"line":45,"column":40}},"20":{"start":{"line":46,"column":4},"end":{"line":46,"column":57}},"21":{"start":{"line":47,"column":4},"end":{"line":47,"column":15}},"22":{"start":{"line":43,"column":0},"end":{"line":43,"column":16}},"23":{"start":{"line":64,"column":4},"end":{"line":79,"column":5}},"24":{"start":{"line":66,"column":12},"end":{"line":69,"column":14}},"25":{"start":{"line":71,"column":12},"end":{"line":75,"column":14}},"26":{"start":{"line":78,"column":12},"end":{"line":78,"column":null}},"27":{"start":{"line":85,"column":23},"end":{"line":85,"column":47}},"28":{"start":{"line":86,"column":19},"end":{"line":86,"column":44}},"29":{"start":{"line":87,"column":4},"end":{"line":87,"column":null}},"30":{"start":{"line":84,"column":0},"end":{"line":84,"column":7}},"31":{"start":{"line":114,"column":20},"end":{"line":114,"column":62}},"32":{"start":{"line":116,"column":4},"end":{"line":118,"column":5}},"33":{"start":{"line":117,"column":8},"end":{"line":117,"column":null}},"34":{"start":{"line":120,"column":21},"end":{"line":120,"column":61}},"35":{"start":{"line":123,"column":22},"end":{"line":123,"column":87}},"36":{"start":{"line":125,"column":4},"end":{"line":130,"column":5}},"37":{"start":{"line":126,"column":8},"end":{"line":126,"column":null}},"38":{"start":{"line":127,"column":8},"end":{"line":127,"column":null}},"39":{"start":{"line":128,"column":8},"end":{"line":128,"column":null}},"40":{"start":{"line":129,"column":8},"end":{"line":129,"column":null}},"41":{"start":{"line":133,"column":26},"end":{"line":133,"column":51}},"42":{"start":{"line":134,"column":4},"end":{"line":135,"column":null}},"43":{"start":{"line":135,"column":8},"end":{"line":135,"column":null}},"44":{"start":{"line":137,"column":23},"end":{"line":137,"column":47}},"45":{"start":{"line":138,"column":20},"end":{"line":138,"column":99}},"46":{"start":{"line":140,"column":4},"end":{"line":140,"column":null}},"47":{"start":{"line":113,"column":0},"end":{"line":113,"column":7}},"48":{"start":{"line":145,"column":22},"end":{"line":145,"column":53}},"49":{"start":{"line":146,"column":19},"end":{"line":146,"column":45}},"50":{"start":{"line":147,"column":17},"end":{"line":147,"column":28}},"51":{"start":{"line":148,"column":19},"end":{"line":148,"column":66}},"52":{"start":{"line":149,"column":14},"end":{"line":149,"column":43}},"53":{"start":{"line":150,"column":14},"end":{"line":150,"column":37}},"54":{"start":{"line":151,"column":4},"end":{"line":151,"column":40}}},"fnMap":{"0":{"name":"toBuffer","decl":{"start":{"line":8,"column":16},"end":{"line":8,"column":24}},"loc":{"start":{"line":8,"column":36},"end":{"line":10,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":9,"column":32},"end":{"line":9,"column":33}},"loc":{"start":{"line":9,"column":37},"end":{"line":9,"column":52}}},"2":{"name":"parseBuffer","decl":{"start":{"line":12,"column":16},"end":{"line":12,"column":27}},"loc":{"start":{"line":12,"column":47},"end":{"line":14,"column":1}}},"3":{"name":"isBase64url","decl":{"start":{"line":17,"column":16},"end":{"line":17,"column":27}},"loc":{"start":{"line":17,"column":39},"end":{"line":19,"column":1}}},"4":{"name":"toBase64url","decl":{"start":{"line":21,"column":16},"end":{"line":21,"column":27}},"loc":{"start":{"line":21,"column":47},"end":{"line":24,"column":1}}},"5":{"name":"parseBase64url","decl":{"start":{"line":26,"column":16},"end":{"line":26,"column":30}},"loc":{"start":{"line":26,"column":51},"end":{"line":29,"column":1}}},"6":{"name":"sha256","decl":{"start":{"line":32,"column":22},"end":{"line":32,"column":28}},"loc":{"start":{"line":32,"column":48},"end":{"line":34,"column":1}}},"7":{"name":"bufferToHex","decl":{"start":{"line":36,"column":16},"end":{"line":36,"column":27}},"loc":{"start":{"line":36,"column":48},"end":{"line":40,"column":1}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":38,"column":14},"end":{"line":38,"column":15}},"loc":{"start":{"line":38,"column":19},"end":{"line":38,"column":52}}},"9":{"name":"concatenateBuffers","decl":{"start":{"line":43,"column":16},"end":{"line":43,"column":34}},"loc":{"start":{"line":43,"column":78},"end":{"line":48,"column":1}}},"10":{"name":"getAlgoParams","decl":{"start":{"line":63,"column":9},"end":{"line":63,"column":22}},"loc":{"start":{"line":63,"column":43},"end":{"line":80,"column":1}}},"11":{"name":"parseCryptoKey","decl":{"start":{"line":84,"column":22},"end":{"line":84,"column":36}},"loc":{"start":{"line":84,"column":76},"end":{"line":88,"column":1}}},"12":{"name":"verifySignature","decl":{"start":{"line":113,"column":22},"end":{"line":113,"column":37}},"loc":{"start":{"line":113,"column":127},"end":{"line":141,"column":1}}},"13":{"name":"convertASN1toRaw","decl":{"start":{"line":143,"column":9},"end":{"line":143,"column":25}},"loc":{"start":{"line":143,"column":54},"end":{"line":152,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":64,"column":4},"end":{"line":79,"column":5}},"type":"switch","locations":[{"start":{"line":65,"column":8},"end":{"line":69,"column":14}},{"start":{"line":70,"column":8},"end":{"line":75,"column":14}},{"start":{"line":77,"column":8},"end":{"line":78,"column":null}}]},"1":{"loc":{"start":{"line":116,"column":4},"end":{"line":118,"column":5}},"type":"if","locations":[{"start":{"line":116,"column":4},"end":{"line":118,"column":5}}]},"2":{"loc":{"start":{"line":125,"column":4},"end":{"line":130,"column":5}},"type":"if","locations":[{"start":{"line":125,"column":4},"end":{"line":130,"column":5}}]},"3":{"loc":{"start":{"line":134,"column":4},"end":{"line":135,"column":null}},"type":"if","locations":[{"start":{"line":134,"column":4},"end":{"line":135,"column":null}}]},"4":{"loc":{"start":{"line":146,"column":19},"end":{"line":146,"column":45}},"type":"cond-expr","locations":[{"start":{"line":146,"column":40},"end":{"line":146,"column":41}},{"start":{"line":146,"column":44},"end":{"line":146,"column":45}}]},"5":{"loc":{"start":{"line":148,"column":19},"end":{"line":148,"column":66}},"type":"cond-expr","locations":[{"start":{"line":148,"column":47},"end":{"line":148,"column":55}},{"start":{"line":148,"column":58},"end":{"line":148,"column":66}}]}},"s":{"0":43,"1":1615,"2":4,"3":37,"4":4,"5":16,"6":4,"7":34,"8":34,"9":4,"10":25,"11":25,"12":4,"13":8,"14":4,"15":4,"16":52,"17":4,"18":3,"19":3,"20":3,"21":3,"22":4,"23":6,"24":0,"25":5,"26":1,"27":4,"28":3,"29":3,"30":4,"31":2,"32":2,"33":0,"34":2,"35":2,"36":2,"37":0,"38":0,"39":0,"40":0,"41":2,"42":2,"43":2,"44":2,"45":2,"46":2,"47":4,"48":2,"49":2,"50":2,"51":2,"52":2,"53":2,"54":2},"f":{"0":43,"1":1615,"2":37,"3":16,"4":34,"5":25,"6":8,"7":4,"8":52,"9":3,"10":6,"11":4,"12":2,"13":2},"b":{"0":[0,5,1],"1":[0],"2":[0],"3":[2],"4":[0,2],"5":[0,2]}} -} diff --git a/coverage/lcov-report/authenticatorMetadata.ts.html b/coverage/lcov-report/authenticatorMetadata.ts.html deleted file mode 100644 index ca04b39..0000000 --- a/coverage/lcov-report/authenticatorMetadata.ts.html +++ /dev/null @@ -1,631 +0,0 @@ - - - - - - Code coverage report for authenticatorMetadata.ts - - - - - - - - - -
-
-

All files authenticatorMetadata.ts

-
- -
- 100% - Statements - 1/1 -
- - -
- 100% - Branches - 0/0 -
- - -
- 100% - Functions - 0/0 -
- - -
- 100% - Lines - 1/1 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

- -
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154 -155 -156 -157 -158 -159 -160 -161 -162 -163 -164 -165 -166 -167 -168 -169 -170 -171 -172 -173 -174 -175 -176 -177 -178 -179 -180 -181 -182 -183  -  -  -  -  -  -  -2x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
/**
- * The source comes from
- * "official" https://mds.fidoalliance.org/
- * and the
- * "community-driven" https://github.com/passkeydeveloper/passkey-authenticator-aaguids
- * combined together.
- */
-export const authenticatorMetadata :Record<string, string> = {
-	"00000000-0000-0000-0000-000000000000": "Unknown authenticator",
-	"0076631b-d4a0-427f-5773-0ec71c9e0279": "HYPR FIDO2 Authenticator",
-	"07a9f89c-6407-4594-9d56-621d5f1e358b": "NXP Semiconductros FIDO2 Conformance Testing CTAP2 Authenticator",
-	"08987058-cadc-4b81-b6e1-30de50dcbe96": "Windows Hello",
-	"092277e5-8437-46b5-b911-ea64b294acb7": "Taglio CTAP2.1 CS",
-	"09591fc6-9811-48f7-8f57-b9f23df6413f": "Pone Biometrics OFFPAD Authenticator",
-	"0acf3011-bc60-f375-fb53-6f05f43154e0": "Nymi FIDO2 Authenticator",
-	"0bb43545-fd2c-4185-87dd-feb0b2916ace": "Security Key NFC by Yubico - Enterprise Edition",
-	"0d9b2e56-566b-c393-2940-f821b7f15d6d": "Excelsecu eSecu FIDO2 Pro Security Key",
-	"0ea242b4-43c4-4a1b-8b17-dd6d0b6baec6": "Keeper",
-	"1105e4ed-af1d-02ff-ffff-ffffffffffff": "Egomet FIDO2 Authenticator for Android",
-	"12ded745-4bed-47d4-abaa-e713f51d6393": "Feitian AllinOne FIDO2 Authenticator",
-	"149a2021-8ef6-4133-96b8-81f8d5b7f1f5": "Security Key by Yubico with NFC",
-	"17290f1e-c212-34d0-1423-365d729f09d9": "Thales PIN iOS SDK",
-	"175cd298-83d2-4a26-b637-313c07a6434e": "Chunghwa Telecom FIDO2 Smart Card Authenticator",
-	"19083c3d-8383-4b18-bc03-8f1c9ab2fd1b": "YubiKey 5 Series",
-	"1c086528-58d5-f211-823c-356786e36140": "Atos CardOS FIDO2",
-	"20f0be98-9af9-986a-4b42-8eca4acb28e4": "Excelsecu eSecu FIDO2 Fingerprint Security Key",
-	"2194b428-9397-4046-8f39-007a1605a482": "IDPrime 931 Fido",
-	"234cd403-35a2-4cc2-8015-77ea280c77f5": "Feitian ePass FIDO2-NFC Series (CTAP2.1, CTAP2.0, U2F)",
-	"23786452-f02d-4344-87ed-aaf703726881": "SafeNet eToken Fusion CC",
-	"2772ce93-eb4b-4090-8b73-330f48477d73": "Security Key NFC by Yubico - Enterprise Edition Preview",
-	"2c0df832-92de-4be1-8412-88a8f074df4a": "Feitian FIDO Smart Card",
-	"2d3bec26-15ee-4f5d-88b2-53622490270b": "HID Crescendo Key V2",
-	"2fc0579f-8113-47ea-b116-bb5a8db9202a": "YubiKey 5 Series with NFC",
-	"2ffd6452-01da-471f-821b-ea4bf6c8676a": "IDPrime 941 Fido",
-	"30b5035e-d297-4fc1-b00b-addc96ba6a97": "OneSpan FIDO Touch",
-	"30b5035e-d297-4ff1-b00b-addc96ba6a98": "OneSpan DIGIPASS FX1 BIO",
-	"3124e301-f14e-4e38-876d-fbeeb090e7bf": "YubiKey 5 Series with Lightning Preview",
-	"31c3f7ff-bf15-4327-83ec-9336abcbcd34": "WinMagic FIDO Eazy - Software",
-	"341e4da9-3c2e-8103-5a9f-aad887135200": "Ledger Nano S FIDO2 Authenticator",
-	"34f5766d-1536-4a24-9033-0e294e510fb0": "YubiKey 5 Series with NFC Preview",
-	"361a3082-0278-4583-a16f-72a527f973e4": "eWBM eFA500 FIDO2 Authenticator",
-	"3789da91-f943-46bc-95c3-50ea2012f03a": "NEOWAVE Winkeo FIDO2",
-	"39a5647e-1853-446c-a1f6-a79bae9f5bc7": "IDmelon",
-	"3b1adb99-0dfe-46fd-90b8-7f7614a4de2a": "GoTrust Idem Key FIDO2 Authenticator",
-	"3e078ffd-4c54-4586-8baa-a77da113aec5": "Hideez Key 3 FIDO2",
-	"3e22415d-7fdf-4ea4-8a0c-dd60c4249b9d": "Feitian iePass FIDO Authenticator",
-	"3f59672f-20aa-4afe-b6f4-7e5e916b6d98": "Arculus FIDO 2.1 Key Card [P71]",
-	"42b4fb4a-2866-43b2-9bf7-6c6669c2e5d3": "Google Titan Security Key v2",
-	"454e5346-4944-4ffd-6c93-8e9267193e9a": "Ensurity ThinC",
-	"454e5346-4944-4ffd-6c93-8e9267193e9b": "Ensurity AUTH BioPro",
-	"47ab2fb4-66ac-4184-9ae1-86be814012d5": "Security Key NFC by Yubico - Enterprise Edition",
-	"4b3f8944-d4f2-4d21-bb19-764a986ec160": "KeyXentic FIDO2 Secp256R1 FIDO2 CTAP2 Authenticator",
-	"4c0cf95d-2f40-43b5-ba42-4c83a11c04ba": "Feitian BioPass FIDO2 Pro Authenticator",
-	"4c50ff10-1057-4fc6-b8ed-43a529530c3c": "ImproveID Authenticator",
-	"4d41190c-7beb-4a84-8018-adf265a6352d": "Thales IDPrime FIDO Bio",
-	"4e768f2c-5fab-48b3-b300-220eb487752b": "Hideez Key 4 FIDO2 SDK",
-	"504d7149-4e4c-3841-4555-55445a677357": "WiSECURE AuthTron USB FIDO2 Authenticator",
-	"50726f74-6f6e-5061-7373-50726f746f6e": "Proton Pass",
-	"50a45b0c-80e7-f944-bf29-f552bfa2e048": "ACS FIDO Authenticator",
-	"516d3969-5a57-5651-5958-4e7a49434167": "SmartDisplayer BobeePass FIDO2 Authenticator",
-	"531126d6-e717-415c-9320-3d9aa6981239": "Dashlane",
-	"53414d53-554e-4700-0000-000000000000": "Samsung Pass",
-	"5343502d-5343-5343-6172-644649444f32": "ESS Smart Card Inc. Authenticator",
-	"54d9fee8-e621-4291-8b18-7157b99c5bec": "HID Crescendo Enabled",
-	"5626bed4-e756-430b-a7ff-ca78c8b12738": "VALMIDO PRO FIDO",
-	"58b44d0b-0a7c-f33a-fd48-f7153c871352": "Ledger Nano S Plus FIDO2 Authenticator",
-	"5b0e46ba-db02-44ac-b979-ca9b84f5e335": "YubiKey 5 FIPS Series with Lightning Preview",
-	"5ca1ab1e-1337-fa57-f1d0-a117e71ca702": "Allthenticator App: roaming BLE FIDO2 Allthenticator for Windows, Mac, Linux, and Allthenticate door readers",
-	"5d629218-d3a5-11ed-afa1-0242ac120002": "Swissbit iShield Key Pro",
-	"5fdb81b8-53f0-4967-a881-f5ec26fe4d18": "VinCSS FIDO2 Authenticator",
-	"6002f033-3c07-ce3e-d0f7-0ffe5ed42543": "Excelsecu eSecu FIDO2 Fingerprint Key",
-	"6028b017-b1d4-4c02-b4b3-afcdafc96bb2": "Windows Hello",
-	"61250591-b2bc-4456-b719-0b17be90bb30": "eWBM eFPA FIDO2 Authenticator",
-	"62e54e98-c209-4df3-b692-de71bb6a8528": "YubiKey 5 FIPS Series with NFC Preview",
-	"664d9f67-84a2-412a-9ff7-b4f7d8ee6d05": "OpenSK authenticator",
-	"66a0ccb3-bd6a-191f-ee06-e375c50b9846": "Thales Bio iOS SDK",
-	"692db549-7ae5-44d5-a1e5-dd20a493b723": "HID Crescendo Key",
-	"69700f79-d1fb-472e-bd9b-a3a3b9a9eda0": "Pone Biometrics OFFPAD Authenticator",
-	"6d44ba9b-f6ec-2e49-b930-0c8fe920cb73": "Security Key by Yubico with NFC",
-	"6dae43be-af9c-417b-8b9f-1b611168ec60": "Dapple Authenticator from Dapple Security Inc.",
-	"73402251-f2a8-4f03-873e-3cb6db604b03": "uTrust FIDO2 Security Key",
-	"73bb0cd4-e502-49b8-9c6f-b59445bf720b": "YubiKey 5 FIPS Series",
-	"74820b05-a6c9-40f9-8fb0-9f86aca93998": "SafeNet eToken Fusion",
-	"760eda36-00aa-4d29-855b-4012a182cdeb": "Security Key NFC by Yubico Preview",
-	"77010bd7-212a-4fc9-b236-d2ca5e9d4084": "Feitian BioPass FIDO2 Authenticator",
-	"771b48fd-d3d4-4f74-9232-fc157ab0507a": "Edge on Mac",
-	"7d1351a6-e097-4852-b8bf-c9ac5c9ce4a3": "YubiKey Bio Series - Multi-protocol Edition",
-	"7d2afadd-bf6b-44a2-a66b-e831fceb8eff": "Taglio CTAP2.1 EP",
-	"7e3f3d30-3557-4442-bdae-139312178b39": "RSA DS100",
-	"820d89ed-d65a-409e-85cb-f73f0578f82a": "IDmelon iOS Authenticator",
-	"833b721a-ff5f-4d00-bb2e-bdda3ec01e29": "Feitian ePass FIDO2 Authenticator",
-	"83c47309-aabb-4108-8470-8be838b573cb": "YubiKey Bio Series (Enterprise Profile)",
-	"85203421-48f9-4355-9bc8-8a53846e5083": "YubiKey 5 FIPS Series with Lightning",
-	"87dbc5a1-4c94-4dc8-8a47-97d800fd1f3c": "eWBM eFA320 FIDO2 Authenticator",
-	"8836336a-f590-0921-301d-46427531eee6": "Thales Bio Android SDK",
-	"8876631b-d4a0-427f-5773-0ec71c9e0279": "Solo Secp256R1 FIDO2 CTAP2 Authenticator",
-	"88bbd2f0-342a-42e7-9729-dd158be5407a": "Precision InnaIT Key FIDO 2 Level 2 certified",
-	"891494da-2c90-4d31-a9cd-4eab0aed1309": "Sésame",
-	"8976631b-d4a0-427f-5773-0ec71c9e0279": "Solo Tap Secp256R1 FIDO2 CTAP2 Authenticator",
-	"89b19028-256b-4025-8872-255358d950e4": "Sentry Enterprises CTAP2 Authenticator",
-	"8c97a730-3f7b-41a6-87d6-1e9b62bda6f0": "FT-JCOS FIDO Fingerprint Card",
-	"8d1b1fcb-3c76-49a9-9129-5515b346aa02": "IDEMIA ID-ONE Card",
-	"91ad6b93-264b-4987-8737-3a690cad6917": "Token Ring FIDO2 Authenticator",
-	"931327dd-c89b-406c-a81e-ed7058ef36c6": "Swissbit iShield Key FIDO2",
-	"95442b2e-f15e-4def-b270-efb106facb4e": "eWBM eFA310 FIDO2 Authenticator",
-	"95e4d58c-056e-4a65-866d-f5a69659e880": "TruU Windows Authenticator",
-	"970c8d9c-19d2-46af-aa32-3f448db49e35": "WinMagic FIDO Eazy - TPM",
-	"973446ca-e21c-9a9b-99f5-9b985a67af0f": "ACS FIDO Authenticator Card",
-	"9876631b-d4a0-427f-5773-0ec71c9e0279": "Somu Secp256R1 FIDO2 CTAP2 Authenticator",
-	"998f358b-2dd2-4cbe-a43a-e8107438dfb3": "OnlyKey Secp256R1 FIDO2 CTAP2 Authenticator",
-	"99bf4610-ec26-4252-b31f-7380ccd59db5": "ZTPass Card",
-	"9c835346-796b-4c27-8898-d6032f515cc5": "Cryptnox FIDO2",
-	"9d3df6ba-282f-11ed-a261-0242ac120002": "Arculus FIDO2/U2F Key Card",
-	"9ddd1817-af5a-4672-a2b9-3e3dd95000a9": "Windows Hello",
-	"9f0d8150-baa5-4c00-9299-ad62c8bb4e87": "GoTrust Idem Card FIDO2 Authenticator",
-	"9f77e279-a6e2-4d58-b700-31e5943c6a98": "Hyper FIDO Pro",
-	"a02167b9-ae71-4ac7-9a07-06432ebb6f1c": "YubiKey 5 Series with Lightning",
-	"a1f52be5-dfab-4364-b51c-2bd496b14a56": "OCTATCO EzFinger2 FIDO2 AUTHENTICATOR",
-	"a25342c0-3cdc-4414-8e46-f4807fca511c": "YubiKey 5 Series with NFC",
-	"a3975549-b191-fd67-b8fb-017e2917fdb3": "Excelsecu eSecu FIDO2 NFC Security Key",
-	"a4e9fc6d-4cbe-4758-b8ba-37598bb5bbaa": "Security Key NFC by Yubico",
-	"ab32f0c6-2239-afbb-c470-d2ef4e254db6": "TEST (DUMMY RECORD)",
-	"ab32f0c6-2239-afbb-c470-d2ef4e254db7": "TOKEN2 FIDO2 Security Key",
-	"adce0002-35bc-c60a-648b-0b25f1f05503": "Chrome on Mac",
-	"aeb6569c-f8fb-4950-ac60-24ca2bbe2e52": "HID Crescendo C2300",
-	"b267239b-954f-4041-a01b-ee4f33c145b6": "authenton1 - CTAP2.1",
-	"b50d5e0a-7f81-4959-9b12-f45407407503": "IDPrime 3940 FIDO",
-	"b5397666-4885-aa6b-cebf-e52262a439a2": "Chromium Browser",
-	"b6ede29c-3772-412c-8a78-539c1f4c62d2": "Feitian BioPass FIDO2 Plus Authenticator",
-	"b84e4048-15dc-4dd0-8640-f4f60813c8af": "NordPass",
-	"b92c3f9a-c014-4056-887f-140a2501163b": "Security Key by Yubico",
-	"b93fd961-f2e6-462f-b122-82002247de78": "Android Authenticator with SafetyNet Attestation",
-	"ba76a271-6eb6-4171-874d-b6428dbe3437": "ATKey.ProS",
-	"ba86dc56-635f-4141-aef6-00227b1b9af6": "TruU Windows Authenticator",
-	"bada5566-a7aa-401f-bd96-45619a55120d": "1Password",
-	"bbf4b6a7-679d-f6fc-c4f2-8ac0ddf9015a": "Excelsecu eSecu FIDO2 PRO Security Key",
-	"bc2fe499-0d8e-4ffe-96f3-94a82840cf8c": "OCTATCO EzQuant FIDO2 AUTHENTICATOR",
-	"be727034-574a-f799-5c76-0929e0430973": "Crayonic KeyVault K1 (USB-NFC-BLE FIDO2 Authenticator)",
-	"c1f9a0bc-1dd2-404a-b27f-8e29047a43fd": "YubiKey 5 FIPS Series with NFC",
-	"c5703116-972b-4851-a3e7-ae1259843399": "NEOWAVE Badgeo FIDO2",
-	"c5ef55ff-ad9a-4b9f-b580-adebafe026d0": "YubiKey 5 Series with Lightning",
-	"c80dbd9a-533f-4a17-b941-1a2f1c7cedff": "HID Crescendo C3000",
-	"ca4cff1b-5a81-4404-8194-59aabcf1660b": "IDPrime 3930 FIDO",
-	"ca87cb70-4c1b-4579-a8e8-4efdd7c007e0": "FIDO Alliance TruU Sample FIDO2 Authenticator",
-	"cb69481e-8ff7-4039-93ec-0a2729a154a8": "YubiKey 5 Series",
-	"cc45f64e-52a2-451b-831a-4edd8022a202": "ToothPic Passkey Provider",
-	"cd69adb5-3c7a-deb9-3177-6800ea6cb72a": "Thales PIN Android SDK",
-	"cdbdaea2-c415-5073-50f7-c04e968640b6": "Excelsecu eSecu FIDO2 Security Key",
-	"cfcb13a2-244f-4b36-9077-82b79d6a7de7": "USB/NFC Passcode Authenticator",
-	"d384db22-4d50-ebde-2eac-5765cf1e2a44": "Excelsecu eSecu FIDO2 Fingerprint Security Key",
-	"d41f5a69-b817-4144-a13c-9ebd6d9254d6": "ATKey.Card CTAP2.0",
-	"d548826e-79b4-db40-a3d8-11116f7e8349": "Bitwarden",
-	"d61d3b87-3e7c-4aea-9c50-441c371903ad": "KeyVault Secp256R1 FIDO2 CTAP2 Authenticator",
-	"d7a423ad-3e19-4492-9200-78137dccc136": "VivoKey Apex FIDO2",
-	"d821a7d4-e97c-4cb6-bd82-4237731fd4be": "Hyper FIDO Bio Security Key",
-	"d8522d9f-575b-4866-88a9-ba99fa02f35b": "YubiKey Bio Series",
-	"d91c5288-0ef0-49b7-b8ae-21ca0aa6b3f3": "KEY-ID FIDO2 Authenticator",
-	"d94a29d9-52dd-4247-9c2d-8b818b610389": "VeriMark Guard Fingerprint Key",
-	"da1fa263-8b25-42b6-a820-c0036f21ba7f": "ATKey.Card NFC",
-	"dd4ec289-e01d-41c9-bb89-70fa845d4bf2": "iCloud Keychain (Managed)",
-	"e1a96183-5016-4f24-b55b-e3ae23614cc6": "ATKey.Pro CTAP2.0",
-	"e416201b-afeb-41ca-a03d-2281c28322aa": "ATKey.Pro CTAP2.1",
-	"e77e3c64-05e3-428b-8824-0cbeb04b829d": "Security Key NFC by Yubico",
-	"e86addcd-7711-47e5-b42a-c18257b0bf61": "IDCore 3121 Fido",
-	"ea9b8d66-4d01-1d21-3ce4-b6b48cb575d4": "Google Password Manager",
-	"eabb46cc-e241-80bf-ae9e-96fa6d2975cf": "TOKEN2 PIN Plus Security Key Series ",
-	"eb3b131e-59dc-536a-d176-cb7306da10f5": "ellipticSecure MIRkey USB Authenticator",
-	"ec31b4cc-2acc-4b8e-9c01-bade00ccbe26": "KeyXentic FIDO2 Secp256R1 FIDO2 CTAP2 Authenticator",
-	"ee041bce-25e5-4cdb-8f86-897fd6418464": "Feitian ePass FIDO2-NFC Authenticator",
-	"ee882879-721c-4913-9775-3dfcce97072a": "YubiKey 5 Series",
-	"efb96b10-a9ee-4b6c-a4a9-d32125ccd4a4": "Safenet eToken FIDO",
-	"f3809540-7f14-49c1-a8b3-8f813b225541": "Enpass",
-	"f4c63eff-d26c-4248-801c-3736c7eaa93a": "FIDO KeyPass S3",
-	"f56f58b3-d711-4afc-ba7d-6ac05f88cb19": "WinMagic FIDO Eazy - Phone",
-	"f7c558a0-f465-11e8-b568-0800200c9a66": "KONAI Secp256R1 FIDO2 Conformance Testing CTAP2 Authenticator",
-	"f8a011f3-8c0a-4d15-8006-17111f9edc7d": "Security Key by Yubico",
-	"fa2b99dc-9e39-4257-8f92-4a30d23c4118": "YubiKey 5 Series with NFC",
-	"fbefdf68-fe86-0106-213e-4d5fa24cbe2e": "Excelsecu eSecu FIDO2 NFC Security Key",
-	"fbfc3007-154e-4ecc-8c0b-6e020557d7bd": "iCloud Keychain",
-	"fcb1bcb4-f370-078c-6993-bc24d0ae3fbe": "Ledger Nano X FIDO2 Authenticator",
-	"fdb141b2-5d84-443e-8a35-4698c205a502": "KeePassXC",
-	"fec067a1-f1d0-4c5e-b4c0-cc3237475461": "KX701 SmartToken FIDO",
-}
- -
-
- - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/authenticators.ts.html b/coverage/lcov-report/authenticators.ts.html deleted file mode 100644 index 7587910..0000000 --- a/coverage/lcov-report/authenticators.ts.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - - Code coverage report for authenticators.ts - - - - - - - - - -
-
-

All files authenticators.ts

-
- -
- 0% - Statements - 0/18 -
- - -
- 0% - Branches - 0/5 -
- - -
- 0% - Functions - 0/2 -
- - -
- 0% - Lines - 0/18 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

- -
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
import { authenticatorMetadata } from './authenticatorMetadata'
- 
- 
-/**
- * Kept for compatibility purposes.
- * @deprecated
- */
-export function resolveAuthenticatorName(aaguid :string) :string {
-    const aaguidMetadata = updatedAuthenticatorMetadata ?? authenticatorMetadata //await getAaguidMetadata()
-    return aaguidMetadata[aaguid]
-}
- 
-let updatedAuthenticatorMetadata :any = null
- 
-/**O
- * Updates the built-in metadata according to raw data available at https://mds.fidoalliance.org/
- * This service delivers a list of AAGUIDs encoded as a JWT.
- * Kept for compatibility purposes.
- * @deprecated
- */
-export async function updateDevicesMetadata() {
-    // this function is rather resource intensive and time consuming
-    // therefore, the result is cached in local storage
-    const jwt = await (await fetch("https://mds.fidoalliance.org")).text()
- 
-    // the response is a JWT including all AAGUIDs and their metadata
-    console.debug(jwt)
- 
-    // let us ignore the JWT verification, since this is solely for descriptive purposes, not signed data
-    const payload = jwt.split('.')[1].replaceAll('-', '+').replaceAll('_', '/')
-    const json = JSON.parse(atob(payload))
-    console.debug(json)
- 
-    let aaguidMetadata :any = {}
-    for(const e of json.entries) {
-        Iif(!e.aaguid || !e.metadataStatement)
-            continue
- 
-        aaguidMetadata[e.aaguid] = e.metadataStatement.description
-    }
- 
-    console.debug(aaguidMetadata)
-    updatedAuthenticatorMetadata = aaguidMetadata
-}
- 
- -
-
- - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/base.css b/coverage/lcov-report/base.css deleted file mode 100644 index f418035..0000000 --- a/coverage/lcov-report/base.css +++ /dev/null @@ -1,224 +0,0 @@ -body, html { - margin:0; padding: 0; - height: 100%; -} -body { - font-family: Helvetica Neue, Helvetica, Arial; - font-size: 14px; - color:#333; -} -.small { font-size: 12px; } -*, *:after, *:before { - -webkit-box-sizing:border-box; - -moz-box-sizing:border-box; - box-sizing:border-box; - } -h1 { font-size: 20px; margin: 0;} -h2 { font-size: 14px; } -pre { - font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace; - margin: 0; - padding: 0; - -moz-tab-size: 2; - -o-tab-size: 2; - tab-size: 2; -} -a { color:#0074D9; text-decoration:none; } -a:hover { text-decoration:underline; } -.strong { font-weight: bold; } -.space-top1 { padding: 10px 0 0 0; } -.pad2y { padding: 20px 0; } -.pad1y { padding: 10px 0; } -.pad2x { padding: 0 20px; } -.pad2 { padding: 20px; } -.pad1 { padding: 10px; } -.space-left2 { padding-left:55px; } -.space-right2 { padding-right:20px; } -.center { text-align:center; } -.clearfix { display:block; } -.clearfix:after { - content:''; - display:block; - height:0; - clear:both; - visibility:hidden; - } -.fl { float: left; } -@media only screen and (max-width:640px) { - .col3 { width:100%; max-width:100%; } - .hide-mobile { display:none!important; } -} - -.quiet { - color: #7f7f7f; - color: rgba(0,0,0,0.5); -} -.quiet a { opacity: 0.7; } - -.fraction { - font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; - font-size: 10px; - color: #555; - background: #E8E8E8; - padding: 4px 5px; - border-radius: 3px; - vertical-align: middle; -} - -div.path a:link, div.path a:visited { color: #333; } -table.coverage { - border-collapse: collapse; - margin: 10px 0 0 0; - padding: 0; -} - -table.coverage td { - margin: 0; - padding: 0; - vertical-align: top; -} -table.coverage td.line-count { - text-align: right; - padding: 0 5px 0 20px; -} -table.coverage td.line-coverage { - text-align: right; - padding-right: 10px; - min-width:20px; -} - -table.coverage td span.cline-any { - display: inline-block; - padding: 0 5px; - width: 100%; -} -.missing-if-branch { - display: inline-block; - margin-right: 5px; - border-radius: 3px; - position: relative; - padding: 0 4px; - background: #333; - color: yellow; -} - -.skip-if-branch { - display: none; - margin-right: 10px; - position: relative; - padding: 0 4px; - background: #ccc; - color: white; -} -.missing-if-branch .typ, .skip-if-branch .typ { - color: inherit !important; -} -.coverage-summary { - border-collapse: collapse; - width: 100%; -} -.coverage-summary tr { border-bottom: 1px solid #bbb; } -.keyline-all { border: 1px solid #ddd; } -.coverage-summary td, .coverage-summary th { padding: 10px; } -.coverage-summary tbody { border: 1px solid #bbb; } -.coverage-summary td { border-right: 1px solid #bbb; } -.coverage-summary td:last-child { border-right: none; } -.coverage-summary th { - text-align: left; - font-weight: normal; - white-space: nowrap; -} -.coverage-summary th.file { border-right: none !important; } -.coverage-summary th.pct { } -.coverage-summary th.pic, -.coverage-summary th.abs, -.coverage-summary td.pct, -.coverage-summary td.abs { text-align: right; } -.coverage-summary td.file { white-space: nowrap; } -.coverage-summary td.pic { min-width: 120px !important; } -.coverage-summary tfoot td { } - -.coverage-summary .sorter { - height: 10px; - width: 7px; - display: inline-block; - margin-left: 0.5em; - background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent; -} -.coverage-summary .sorted .sorter { - background-position: 0 -20px; -} -.coverage-summary .sorted-desc .sorter { - background-position: 0 -10px; -} -.status-line { height: 10px; } -/* yellow */ -.cbranch-no { background: yellow !important; color: #111; } -/* dark red */ -.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 } -.low .chart { border:1px solid #C21F39 } -.highlighted, -.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{ - background: #C21F39 !important; -} -/* medium red */ -.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE } -/* light red */ -.low, .cline-no { background:#FCE1E5 } -/* light green */ -.high, .cline-yes { background:rgb(230,245,208) } -/* medium green */ -.cstat-yes { background:rgb(161,215,106) } -/* dark green */ -.status-line.high, .high .cover-fill { background:rgb(77,146,33) } -.high .chart { border:1px solid rgb(77,146,33) } -/* dark yellow (gold) */ -.status-line.medium, .medium .cover-fill { background: #f9cd0b; } -.medium .chart { border:1px solid #f9cd0b; } -/* light yellow */ -.medium { background: #fff4c2; } - -.cstat-skip { background: #ddd; color: #111; } -.fstat-skip { background: #ddd; color: #111 !important; } -.cbranch-skip { background: #ddd !important; color: #111; } - -span.cline-neutral { background: #eaeaea; } - -.coverage-summary td.empty { - opacity: .5; - padding-top: 4px; - padding-bottom: 4px; - line-height: 1; - color: #888; -} - -.cover-fill, .cover-empty { - display:inline-block; - height: 12px; -} -.chart { - line-height: 0; -} -.cover-empty { - background: white; -} -.cover-full { - border-right: none !important; -} -pre.prettyprint { - border: none !important; - padding: 0 !important; - margin: 0 !important; -} -.com { color: #999 !important; } -.ignore-none { color: #999; font-weight: normal; } - -.wrapper { - min-height: 100%; - height: auto !important; - height: 100%; - margin: 0 auto -48px; -} -.footer, .push { - height: 48px; -} diff --git a/coverage/lcov-report/block-navigation.js b/coverage/lcov-report/block-navigation.js deleted file mode 100644 index cc12130..0000000 --- a/coverage/lcov-report/block-navigation.js +++ /dev/null @@ -1,87 +0,0 @@ -/* eslint-disable */ -var jumpToCode = (function init() { - // Classes of code we would like to highlight in the file view - var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no']; - - // Elements to highlight in the file listing view - var fileListingElements = ['td.pct.low']; - - // We don't want to select elements that are direct descendants of another match - var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > ` - - // Selecter that finds elements on the page to which we can jump - var selector = - fileListingElements.join(', ') + - ', ' + - notSelector + - missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b` - - // The NodeList of matching elements - var missingCoverageElements = document.querySelectorAll(selector); - - var currentIndex; - - function toggleClass(index) { - missingCoverageElements - .item(currentIndex) - .classList.remove('highlighted'); - missingCoverageElements.item(index).classList.add('highlighted'); - } - - function makeCurrent(index) { - toggleClass(index); - currentIndex = index; - missingCoverageElements.item(index).scrollIntoView({ - behavior: 'smooth', - block: 'center', - inline: 'center' - }); - } - - function goToPrevious() { - var nextIndex = 0; - if (typeof currentIndex !== 'number' || currentIndex === 0) { - nextIndex = missingCoverageElements.length - 1; - } else if (missingCoverageElements.length > 1) { - nextIndex = currentIndex - 1; - } - - makeCurrent(nextIndex); - } - - function goToNext() { - var nextIndex = 0; - - if ( - typeof currentIndex === 'number' && - currentIndex < missingCoverageElements.length - 1 - ) { - nextIndex = currentIndex + 1; - } - - makeCurrent(nextIndex); - } - - return function jump(event) { - if ( - document.getElementById('fileSearch') === document.activeElement && - document.activeElement != null - ) { - // if we're currently focused on the search input, we don't want to navigate - return; - } - - switch (event.which) { - case 78: // n - case 74: // j - goToNext(); - break; - case 66: // b - case 75: // k - case 80: // p - goToPrevious(); - break; - } - }; -})(); -window.addEventListener('keydown', jumpToCode); diff --git a/coverage/lcov-report/client.ts.html b/coverage/lcov-report/client.ts.html deleted file mode 100644 index 233d354..0000000 --- a/coverage/lcov-report/client.ts.html +++ /dev/null @@ -1,757 +0,0 @@ - - - - - - Code coverage report for client.ts - - - - - - - - - -
-
-

All files client.ts

-
- -
- 90.32% - Statements - 56/62 -
- - -
- 78.04% - Branches - 32/41 -
- - -
- 100% - Functions - 7/7 -
- - -
- 90.32% - Lines - 56/62 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

- -
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154 -155 -156 -157 -158 -159 -160 -161 -162 -163 -164 -165 -166 -167 -168 -169 -170 -171 -172 -173 -174 -175 -176 -177 -178 -179 -180 -181 -182 -183 -184 -185 -186 -187 -188 -189 -190 -191 -192 -193 -194 -195 -196 -197 -198 -199 -200 -201 -202 -203 -204 -205 -206 -207 -208 -209 -210 -211 -212 -213 -214 -215 -216 -217 -218 -219 -220 -221 -222 -223 -224 -225  -3x -  -  -  -  -3x -2x -  -  -  -  -  -3x -2x -  -  -  -  -  -  -  -  -6x -6x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -3x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -3x -  -9x -1x -  -8x -1x -  -7x -1x -  -6x -6x -3x -  -6x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -6x -  -6x -1x -6x -  -6x -  -  -  -5x -  -5x -  -5x -  -5x -1x -  -4x -4x -1x -  -  -3x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -3x -  -  -3x -3x -  -  -  -  -  -  -  -  -  -  -  -3x -6x -1x -  -5x -1x -  -4x -  -  -  -  -  -  -  -  -4x -  -4x -2x -  -4x -  -4x -  -  -  -  -  -3x -1x -  -2x -  -2x -  -2x -  -  -2x -  -  -  -  -  -  -  -  -  -  -  -  -  -2x -  -  -  -1x -  -  -  -  -  -  -1x -  -  -  -  -  -  - 
import { AuthenticateOptions, AuthenticationJSON, Base64URLString, CredentialDescriptor, ExtendedAuthenticatorTransport, PublicKeyCredentialHints, RegisterOptions, RegistrationJSON, User, WebAuthnCreateOptions, WebAuthnGetOptions } from './types.js'
-import * as utils from './utils'
- 
-/**
- * Returns whether passwordless authentication is available on this browser/platform or not.
- */
-export function isAvailable(): boolean {
-    return !!window.PublicKeyCredential
-}
- 
-/**
- * Returns whether the device itself can be used as authenticator.
- */
-export async function isLocalAuthenticator(): Promise<boolean> {
-    return await PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()
-}
- 
- 
- 
-/**
- * Before "hints" were a thing, the "authenticatorAttachment" was the way to go.
- */
-function getAuthAttachment(hints?: PublicKeyCredentialHints[]): AuthenticatorAttachment | undefined {
-    if (!hints || hints.length === 0)
-        return undefined // The webauthn protocol considers `null` as invalid but `undefined` as "both"!
- 
-    Iif (hints.includes('client-device')) {
-        if (hints.includes('security-key') || hints.includes('hybrid'))
-            return undefined // both
-        else
-            return "platform";
-    }
-    return "cross-platform";
-}
- 
- 
-/**
- * For autocomplete / conditional mediation, the ongoing "authentication" must be aborted when triggering a registration.
- * It should also be aborted when triggering authentication another time.
- */
-let ongoingAuth: AbortController | null = null;
- 
- 
-/**
- * Creates a cryptographic key pair, in order to register the public key for later passwordless authentication.
- *
- * @param {string|Object} [user] Username or user object (id, name, displayName)
- * @param {string} [challenge] A server-side randomly generated string.
- * @param {number} [timeout=60000] Number of milliseconds the user has to respond to the biometric/PIN check.
- * @param {'required'|'preferred'|'discouraged'} [userVerification='required'] Whether to prompt for biometric/PIN check or not.
- * @param {PublicKeyCredentialHints[]} [hints]: Can contain a list of "client-device", "hybrid" or "security-key"
- * @param {boolean} [attestation=false] If enabled, the device attestation and clientData will be provided as Base64url encoded binary data. Note that this is not available on some platforms.
- * @param {'discouraged'|'preferred'|'required'} [discoverable] A "discoverable" credential can be selected using `authenticate(...)` without providing credential IDs.
- *              Instead, a native pop-up will appear for user selection.
- *              This may have an impact on the "passkeys" user experience and syncing behavior of the key.
- */
-export async function register(options: RegisterOptions): Promise<RegistrationJSON> {
- 
-    if (!options.challenge)
-        throw new Error('"challenge" required')
- 
-    if (!options.user)
-        throw new Error('"user" required')
- 
-    if (!utils.isBase64url(options.challenge))
-        throw new Error('Provided challenge is not properly encoded in Base64url')
- 
-    const user: User = typeof (options.user) === 'string' ? { name: options.user } : options.user
-    if (!user.id)
-        user.id = crypto.randomUUID()
- 
-    const creationOptions: WebAuthnCreateOptions = {
-        challenge: utils.parseBase64url(options.challenge),
-        rp: {
-            id: options.domain ?? window.location.hostname,
-            name: options.domain ?? window.location.hostname
-        },
-        user: {
-            id: utils.toBuffer(user.id),
-            name: user.name,
-            displayName: user.displayName ?? user.name,
-        },
-        hints: options.hints,
-        pubKeyCredParams: [
-            { alg: -7, type: "public-key" },   // ES256 (Webauthn's default algorithm)
-            { alg: -257, type: "public-key" }, // RS256 (for older Windows Hello and others)
-        ],
-        timeout: options.timeout,
-        authenticatorSelection: {
-            userVerification: options.userVerification,
-            authenticatorAttachment: getAuthAttachment(options.hints),
-            residentKey: options.discoverable ?? 'preferred', // see https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialCreationOptions#residentkey
-            requireResidentKey: (options.discoverable === 'required') // mainly for backwards compatibility, see https://www.w3.org/TR/webauthn/#dictionary-authenticatorSelection
-        },
-        attestation: "direct"
-    }
- 
-    console.debug(creationOptions)
- 
-    if (ongoingAuth != null)
-        ongoingAuth.abort('Cancel ongoing authentication')
-    ongoingAuth = new AbortController();
- 
-    const raw = await navigator.credentials.create({
-        publicKey: creationOptions,
-        signal: ongoingAuth?.signal
-    }) as PublicKeyCredential
-    const response = raw.response as AuthenticatorAttestationResponse
- 
-    ongoingAuth = null;
- 
-    console.debug(raw)
- 
-    if (raw.type != "public-key")
-        throw "Unexpected credential type!";
- 
-    const publicKey = response.getPublicKey();
-    if (!publicKey)
-        throw "Non-compliant browser or authenticator!"
- 
-    // This should provide the same as `response.toJson()` which is sadly only available on FireFox
-    const json: RegistrationJSON = {
-        type: raw.type,
-        id: raw.id,
-        rawId: utils.toBase64url(raw.rawId), // Same as ID, but useful in tests
-        authenticatorAttachment: raw.authenticatorAttachment as AuthenticatorAttachment,
-        clientExtensionResults: raw.getClientExtensionResults(),
-        response: {
-            attestationObject: utils.toBase64url(response.attestationObject),
-            authenticatorData: utils.toBase64url(response.getAuthenticatorData()),
-            clientDataJSON: utils.toBase64url(response.clientDataJSON),
-            publicKey: utils.toBase64url(publicKey),
-            publicKeyAlgorithm: response.getPublicKeyAlgorithm(),
-            transports: response.getTransports() as AuthenticatorTransport[],
-        },
-        user, // That's our own addition 
-    }
-    return json
-}
- 
-export async function isAutocompleteAvailable() {
-    return PublicKeyCredential.isConditionalMediationAvailable && PublicKeyCredential.isConditionalMediationAvailable();
-}
- 
-/**
- * Signs a challenge using one of the provided credentials IDs in order to authenticate the user.
- *
- * @param {string[]} credentialIds The list of credential IDs that can be used for signing.
- * @param {string} challenge A server-side randomly generated string, the base64 encoded version will be signed.
- * @param {number} [timeout=60000] Number of milliseconds the user has to respond to the biometric/PIN check.
- * @param {'required'|'preferred'|'discouraged'} [userVerification='required'] Whether to prompt for biometric/PIN check or not.
- * @param {boolean} [conditional] Does not return directly, but only when the user has selected a credential in the input field with `autocomplete="username webauthn"`
- */
-export async function authenticate(options: AuthenticateOptions): Promise<AuthenticationJSON> {
-    if (!utils.isBase64url(options.challenge))
-        throw new Error('Provided challenge is not properly encoded in Base64url')
- 
-    if (options.autocomplete && !(await isAutocompleteAvailable()))
-        throw new Error('Passkeys autocomplete with conditional mediation is not available in this browser.')
- 
-    let authOptions: WebAuthnGetOptions = {
-        challenge: utils.parseBase64url(options.challenge),
-        rpId: options.domain ?? window.location.hostname,
-        allowCredentials: options.allowCredentials?.map(toPublicKeyCredentialDescriptor),
-        hints: options.hints,
-        userVerification: options.userVerification,
-        timeout: options.timeout,
-    }
- 
-    console.debug(authOptions)
- 
-    if(ongoingAuth != null)
-        ongoingAuth.abort('Cancel ongoing authentication')
-    
-    ongoingAuth = new AbortController();
-    
-    const raw = await navigator.credentials.get({
-        publicKey: authOptions,
-        mediation: options.autocomplete ? 'conditional' : undefined,
-        signal: ongoingAuth?.signal
-    }) as PublicKeyCredential
- 
-    if (raw.type != "public-key")
-        throw "Unexpected credential type!";
- 
-    ongoingAuth = null;
- 
-    console.debug(raw)
- 
-    const response = raw.response as AuthenticatorAssertionResponse
- 
-    // This should provide the same as `response.toJson()` which is sadly only available on FireFox
-    const json: AuthenticationJSON = {
-        clientExtensionResults: raw.getClientExtensionResults(),
-        id: raw.id,
-        rawId: utils.toBase64url(raw.rawId),
-        type: raw.type,
-        authenticatorAttachment: raw.authenticatorAttachment as AuthenticatorAttachment,
-        response: {
-            authenticatorData: utils.toBase64url(response.authenticatorData),
-            clientDataJSON: utils.toBase64url(response.clientDataJSON),
-            signature: utils.toBase64url(response.signature),
-            userHandle: response.userHandle ? utils.toBase64url(response.userHandle) : undefined
-        }
-    }
- 
-    return json
-}
- 
-function toPublicKeyCredentialDescriptor(cred: Base64URLString | CredentialDescriptor): PublicKeyCredentialDescriptor {
-    Iif(typeof cred === 'string') {
-        return {
-            id: utils.parseBase64url(cred),
-            type: 'public-key'
-        }
-    }
-    else {
-        return {
-            id: utils.parseBase64url(cred.id),
-            type: 'public-key',
-            transports: cred.transports as AuthenticatorTransport[]
-        }
-    }
-}
- 
- -
-
- - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/favicon.png b/coverage/lcov-report/favicon.png deleted file mode 100644 index c1525b811a167671e9de1fa78aab9f5c0b61cef7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 445 zcmV;u0Yd(XP))rP{nL}Ln%S7`m{0DjX9TLF* zFCb$4Oi7vyLOydb!7n&^ItCzb-%BoB`=x@N2jll2Nj`kauio%aw_@fe&*}LqlFT43 z8doAAe))z_%=P%v^@JHp3Hjhj^6*Kr_h|g_Gr?ZAa&y>wxHE99Gk>A)2MplWz2xdG zy8VD2J|Uf#EAw*bo5O*PO_}X2Tob{%bUoO2G~T`@%S6qPyc}VkhV}UifBuRk>%5v( z)x7B{I~z*k<7dv#5tC+m{km(D087J4O%+<<;K|qwefb6@GSX45wCK}Sn*> - - - - Code coverage report for All files - - - - - - - - - -
-
-

All files

-
- -
- 92.3% - Statements - 204/221 -
- - -
- 78.31% - Branches - 65/83 -
- - -
- 97.22% - Functions - 35/36 -
- - -
- 92.12% - Lines - 199/216 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
authenticatorMetadata.ts -
-
100%1/1100%0/0100%0/0100%1/1
client.ts -
-
90.32%56/6278.04%32/41100%7/790.32%56/62
index.ts -
-
100%12/12100%0/00%0/1100%8/8
parsers.ts -
-
97.22%35/3688.88%8/9100%9/997.22%35/36
server.ts -
-
92.72%51/5586.95%20/23100%5/592.72%51/55
utils.ts -
-
89.09%49/5550%5/10100%14/1488.88%48/54
-
-
-
- - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/index.ts.html b/coverage/lcov-report/index.ts.html deleted file mode 100644 index be9c0c5..0000000 --- a/coverage/lcov-report/index.ts.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - Code coverage report for index.ts - - - - - - - - - -
-
-

All files index.ts

-
- -
- 100% - Statements - 12/12 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/1 -
- - -
- 100% - Lines - 8/8 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

- -
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -112x -2x -2x -2x -2x -  -2x -  -2x -2x - 
import * as client from './client';
-import * as server from './server';
-import * as parsers from './parsers';
-import * as utils from './utils';
-import { authenticatorMetadata } from './authenticatorMetadata'
- 
-export { client, server, parsers, utils, authenticatorMetadata }
- 
-const webauthn = { client, server, parsers, utils, authenticatorMetadata }
-export default webauthn
- 
- -
-
- - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/parsers.ts.html b/coverage/lcov-report/parsers.ts.html deleted file mode 100644 index 87d25b0..0000000 --- a/coverage/lcov-report/parsers.ts.html +++ /dev/null @@ -1,457 +0,0 @@ - - - - - - Code coverage report for parsers.ts - - - - - - - - - -
-
-

All files parsers.ts

-
- -
- 97.22% - Statements - 35/36 -
- - -
- 88.88% - Branches - 8/9 -
- - -
- 100% - Functions - 9/9 -
- - -
- 97.22% - Lines - 35/36 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

- -
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -1251x -  -1x -  -1x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -1x -1x -1x -1x -  -  -  -1x -3x -3x -  -  -3x -  -  -  -3x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -3x -  -  -  -  -  -  -3x -  -3x -3x -3x -3x -  -  -  -  -1x -5x -2x -1x -1x -1x -  -  -  -  -1x -1x -1x -  -  -1x -1x -1x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -1x -1x -  -  -  -  -  -  -  -  -  -1x -1x -1x -  - 
import * as utils from './utils'
-import { Base64URLString, CollectedClientData, NamedAlgo, AuthenticatorParsed, RegistrationJSON, RegistrationInfo, UserInfo, AuthenticationInfo, AuthenticationJSON } from './types'
-import { authenticatorMetadata } from './authenticatorMetadata'
- 
-const utf8Decoder = new TextDecoder('utf-8')
- 
- 
-interface ClientInfo {
-    type: "webauthn.create" | "webauthn.get"
-    challenge: string
-    origin: string
-    crossOrigin: boolean
-    tokenBindingId?: {
-      id: string
-      status: string
-    }
-    extensions?: any
-}
- 
-  
-export function parseClient(data :Base64URLString|ArrayBuffer) :CollectedClientData {
-    if(typeof data == 'string')
-        data = utils.parseBase64url(data)
-    return JSON.parse(utf8Decoder.decode(data))
-}
- 
- 
-export function parseAuthenticator(authData :Base64URLString|ArrayBuffer) :AuthenticatorParsed {
-    if(typeof authData == 'string')
-        authData = utils.parseBase64url(authData)
-    
-    //console.debug(authData)
-    let flags = new DataView(authData.slice(32,33)).getUint8(0)
-    //console.debug(flags)
- 
-    // https://w3c.github.io/webauthn/#sctn-authenticator-data
-    return {
-        rpIdHash: extractRpIdHash(authData),
-        flags: {
-                userPresent: !!(flags & 1),
-                //reserved1: !!(flags & 2),
-                userVerified: !!(flags &  4),
-                backupEligibility: !!(flags & 8),
-                backupState: !!(flags & 16),
-                //reserved2: !!(flags & 32),
-                attestedData: !!(flags & 64),
-                extensionsIncluded: !!(flags & 128)
-        },
-        signCount: new DataView(authData.slice(33,37)).getUint32(0, false),  // Big-Endian!
-        aaguid: extractAaguid(authData),
-        //credentialId: extractCredentialId() 
-    }
-}
- 
-function extractRpIdHash(authData :ArrayBuffer) :Base64URLString {
-    return utils.toBase64url(authData.slice(0,32))
-}
- 
-/**
- * Returns the AAGUID in the format "00000000-0000-0000-0000-000000000000"
- */
-function extractAaguid(authData :ArrayBuffer) :string {
-    Iif(authData.byteLength < 53)
-        return "00000000-0000-0000-0000-000000000000"
-    const buffer = authData.slice(37, 53) // 16 byte
-    const hex = utils.bufferToHex(buffer)
-    const aaguid :string = `${hex.substring(0,8)}-${hex.substring(8,12)}-${hex.substring(12,16)}-${hex.substring(16,20)}-${hex.substring(20,32)}`
-    return aaguid // example: "d41f5a69-b817-4144-a13c-9ebd6d9254d6"
-}
- 
- 
- 
-export function getAlgoName(num :COSEAlgorithmIdentifier) :NamedAlgo {
-    switch(num) {
-        case -7: return "ES256"
-        case -8: return "EdDSA"
-        case -257: return "RS256"
-        default: throw new Error(`Unknown algorithm code: ${num}`)
-    }
-}
- 
- 
-export function parseRegistration(registrationJson :RegistrationJSON) :RegistrationInfo {
-    const authenticator = parseAuthenticator(registrationJson.response.authenticatorData);
-    return toRegistrationInfo(registrationJson, authenticator);
-}
- 
-export function toRegistrationInfo(registrationJson :RegistrationJSON, authenticator :AuthenticatorParsed) :RegistrationInfo {
-    const aaguid = authenticator.aaguid
-    return {
-        authenticator: {
-            aaguid,
-            counter: authenticator.signCount,
-            icon_light: 'https://webauthn.passwordless.id/authenticators/' + aaguid + '-light.png',
-            icon_dark: 'https://webauthn.passwordless.id/authenticators/' + aaguid + '-dark.png',
-            name: authenticatorMetadata[aaguid] ?? 'Unknown',
-        },
-        credential: {
-            id: registrationJson.id,
-            publicKey: registrationJson.response.publicKey,
-            algorithm: getAlgoName(registrationJson.response.publicKeyAlgorithm),
-            transports: registrationJson.response.transports
-        },
-        synced: authenticator.flags.backupEligibility,
-        user: registrationJson.user as UserInfo, // That's specific to this library
-        userVerified: authenticator.flags.userVerified,
-    }
-}
- 
-export function toAuthenticationInfo(authenticationJson :AuthenticationJSON, authenticator :AuthenticatorParsed) :AuthenticationInfo {
-    return {
-        credentialId: authenticationJson.id,
-        userId: authenticationJson.response.userHandle,
-        counter: authenticator.signCount,
-        userVerified: authenticator.flags.userVerified,
-        authenticatorAttachment: authenticationJson.authenticatorAttachment
-    }
-}
- 
- 
-export function parseAuthentication(authenticationJson :AuthenticationJSON) :AuthenticationInfo {
-    const authenticator = parseAuthenticator(authenticationJson.response.authenticatorData);
-    return toAuthenticationInfo(authenticationJson, authenticator);
-}
- 
- -
-
- - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/prettify.css b/coverage/lcov-report/prettify.css deleted file mode 100644 index b317a7c..0000000 --- a/coverage/lcov-report/prettify.css +++ /dev/null @@ -1 +0,0 @@ -.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} diff --git a/coverage/lcov-report/prettify.js b/coverage/lcov-report/prettify.js deleted file mode 100644 index b322523..0000000 --- a/coverage/lcov-report/prettify.js +++ /dev/null @@ -1,2 +0,0 @@ -/* eslint-disable */ -window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;arat[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);c(g([[F,/^[\s]+/,null," \t\r\n"],[n,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[m,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[[n,/^[\s\S]+/]]),["uq.val"]);c(i({keywords:l,hashComments:true,cStyleComments:true,types:e}),["c","cc","cpp","cxx","cyc","m"]);c(i({keywords:"null,true,false"}),["json"]);c(i({keywords:R,hashComments:true,cStyleComments:true,verbatimStrings:true,types:e}),["cs"]);c(i({keywords:x,cStyleComments:true}),["java"]);c(i({keywords:H,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);c(i({keywords:I,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);c(i({keywords:s,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);c(i({keywords:f,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);c(i({keywords:w,cStyleComments:true,regexLiterals:true}),["js"]);c(i({keywords:r,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);c(g([],[[C,/^[\s\S]+/]]),["regex"]);function d(V){var U=V.langExtension;try{var S=a(V.sourceNode);var T=S.sourceCode;V.sourceCode=T;V.spans=S.spans;V.basePos=0;q(U,T)(V);D(V)}catch(W){if("console" in window){console.log(W&&W.stack?W.stack:W)}}}function y(W,V,U){var S=document.createElement("PRE");S.innerHTML=W;if(U){Q(S,U)}var T={langExtension:V,numberLines:U,sourceNode:S};d(T);return S.innerHTML}function b(ad){function Y(af){return document.getElementsByTagName(af)}var ac=[Y("pre"),Y("code"),Y("xmp")];var T=[];for(var aa=0;aa=0){var ah=ai.match(ab);var am;if(!ah&&(am=o(aj))&&"CODE"===am.tagName){ah=am.className.match(ab)}if(ah){ah=ah[1]}var al=false;for(var ak=aj.parentNode;ak;ak=ak.parentNode){if((ak.tagName==="pre"||ak.tagName==="code"||ak.tagName==="xmp")&&ak.className&&ak.className.indexOf("prettyprint")>=0){al=true;break}}if(!al){var af=aj.className.match(/\blinenums\b(?::(\d+))?/);af=af?af[1]&&af[1].length?+af[1]:true:false;if(af){Q(aj,af)}S={langExtension:ah,sourceNode:aj,numberLines:af};d(S)}}}if(X]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); diff --git a/coverage/lcov-report/server.ts.html b/coverage/lcov-report/server.ts.html deleted file mode 100644 index 08f8ced..0000000 --- a/coverage/lcov-report/server.ts.html +++ /dev/null @@ -1,445 +0,0 @@ - - - - - - Code coverage report for server.ts - - - - - - - - - -
-
-

All files server.ts

-
- -
- 92.72% - Statements - 51/55 -
- - -
- 86.95% - Branches - 20/23 -
- - -
- 100% - Functions - 5/5 -
- - -
- 92.72% - Lines - 51/55 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

- -
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -1212x -2x -  -2x -2x -  -  -2x -1x -1x -  -  -  -  -  -20x -  -  -  -  -  -  -  -20x -  -  -  -20x -  -  -  -  -  -  -  -  -  -2x -5x -5x -5x -  -5x -1x -  -4x -1x -  -3x -1x -  -2x -1x -  -1x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -2x -11x -1x -  -10x -  -  -  -  -  -  -  -  -10x -1x -  -9x -9x -  -9x -1x -1x -  -  -9x -1x -  -8x -1x -  -7x -1x -  -  -6x -6x -6x -1x -  -5x -1x -  -4x -1x -  -3x -2x -  -1x -  - 
import { parsers } from "./index";
-import { parseAuthenticator, parseClient, toAuthenticationInfo } from "./parsers";
-import { AuthenticationJSON, RegistrationJSON, RegistrationInfo, AuthenticationInfo, Base64URLString, CollectedClientData, UserInfo, CredentialInfo, AuthenticatorInfo, AuthenticatorParsed } from "./types";
-import * as utils from './utils'
-import { verifySignature } from "./utils";
- 
- 
-export function randomChallenge() {
-    const buffer = crypto.getRandomValues(new Uint8Array(18)); // > 128 bits, a multiple of 3 bytes to have base64 encoding without padding
-    return utils.toBase64url(buffer);
-}
- 
- 
- 
-async function isValid(validator :any, value :any) :Promise<boolean> {
-   Iif(typeof validator === 'function') {
-        const res = validator(value)
-        if(res instanceof Promise)
-            return await res
-        else
-            return res
-    }
-    // the validator can be a single value too
-    return validator === value
-}
- 
-async function isNotValid(validator :any, value :any) :Promise<boolean> {
-    return !(await isValid(validator, value))
-}
- 
-interface RegistrationChecks {
-    challenge: string | Function,
-    origin: string | Function
-}
- 
- 
- 
-export async function verifyRegistration(registrationJson: RegistrationJSON, expected: RegistrationChecks): Promise<RegistrationInfo> {
-    const client = parseClient(registrationJson.response.clientDataJSON)
-    const authenticator = parseAuthenticator(registrationJson.response.authenticatorData);
-    const aaguid = authenticator.aaguid;
- 
-    if(!aaguid) // should never happen, worst case should be a fallback to "zeroed" aaguid
-        throw new Error("Unexpected error, no AAGUID.")
- 
-    if (client.type !== "webauthn.create")
-        throw new Error(`Unexpected ClientData type: ${client.type}`)
- 
-    if (await isNotValid(expected.origin, client.origin))
-        throw new Error(`Unexpected ClientData origin: ${client.origin}`)
- 
-    if (await isNotValid(expected.challenge, client.challenge))
-        throw new Error(`Unexpected ClientData challenge: ${client.challenge}`)
- 
-    return parsers.toRegistrationInfo(registrationJson, authenticator)
-}
- 
- 
- 
-interface AuthenticationChecks {
-    challenge: string | Function,
-    origin: string | Function,
-    userVerified: boolean,
-    counter?: number, // Made optional according to https://github.com/passwordless-id/webauthn/issues/38
-    domain ?:string, // Same as `rp.id`
-    verbose?: boolean
-}
- 
- 
- 
-export async function verifyAuthentication(authenticationJson: AuthenticationJSON, credential: CredentialInfo, expected: AuthenticationChecks): Promise<AuthenticationInfo> {
-    if (authenticationJson.id !== credential.id)
-        throw new Error(`Credential ID mismatch: ${authenticationJson.id} vs ${credential.id}`)
- 
-    const isValidSignature: boolean = await verifySignature({
-        algorithm: credential.algorithm,
-        publicKey: credential.publicKey,
-        authenticatorData: authenticationJson.response.authenticatorData,
-        clientData: authenticationJson.response.clientDataJSON,
-        signature: authenticationJson.response.signature,
-        verbose: expected.verbose
-    })
- 
-    if(!isValidSignature)
-        throw new Error(`Invalid signature: ${authenticationJson.response.signature}`)
- 
-    const client :CollectedClientData = parseClient(authenticationJson.response.clientDataJSON);
-    const authenticator :AuthenticatorParsed = parseAuthenticator(authenticationJson.response.authenticatorData);
- 
-    if(expected.verbose) {
-        console.debug(client)
-        console.debug(authenticator)
-    }
-    
-    if (client.type !== "webauthn.get")
-        throw new Error(`Unexpected clientData type: ${client.type}`)
- 
-    if (await isNotValid(expected.origin, client.origin))
-        throw new Error(`Unexpected ClientData origin: ${client.origin}`)
- 
-    if (await isNotValid(expected.challenge, client.challenge))
-        throw new Error(`Unexpected ClientData challenge: ${client.challenge}`)
- 
-    // this only works because we consider `rp.origin` and `rp.id` to be the same during authentication/registration
-    const rpId = expected.domain ?? new URL(client.origin).hostname
-    const expectedRpIdHash = utils.toBase64url(await utils.sha256(utils.toBuffer(rpId)))
-    if (authenticator.rpIdHash !== expectedRpIdHash)
-        throw new Error(`Unexpected RpIdHash: ${authenticator.rpIdHash} vs ${expectedRpIdHash}`)
- 
-    if (!authenticator.flags.userPresent)
-        throw new Error(`Unexpected authenticator flags: missing userPresent`)
- 
-    if (!authenticator.flags.userVerified && expected.userVerified)
-        throw new Error(`Unexpected authenticator flags: missing userVerified`)
- 
-    if (expected.counter && authenticator.signCount <= expected.counter)
-        throw new Error(`Unexpected authenticator counter: ${authenticator.signCount} (should be > ${expected.counter})`)
- 
-    return toAuthenticationInfo(authenticationJson, authenticator)
-}
- 
- -
-
- - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/sort-arrow-sprite.png b/coverage/lcov-report/sort-arrow-sprite.png deleted file mode 100644 index 6ed68316eb3f65dec9063332d2f69bf3093bbfab..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 138 zcmeAS@N?(olHy`uVBq!ia0vp^>_9Bd!3HEZxJ@+%Qh}Z>jv*C{$p!i!8j}?a+@3A= zIAGwzjijN=FBi!|L1t?LM;Q;gkwn>2cAy-KV{dn nf0J1DIvEHQu*n~6U}x}qyky7vi4|9XhBJ7&`njxgN@xNA8m%nc diff --git a/coverage/lcov-report/sorter.js b/coverage/lcov-report/sorter.js deleted file mode 100644 index 2bb296a..0000000 --- a/coverage/lcov-report/sorter.js +++ /dev/null @@ -1,196 +0,0 @@ -/* eslint-disable */ -var addSorting = (function() { - 'use strict'; - var cols, - currentSort = { - index: 0, - desc: false - }; - - // returns the summary table element - function getTable() { - return document.querySelector('.coverage-summary'); - } - // returns the thead element of the summary table - function getTableHeader() { - return getTable().querySelector('thead tr'); - } - // returns the tbody element of the summary table - function getTableBody() { - return getTable().querySelector('tbody'); - } - // returns the th element for nth column - function getNthColumn(n) { - return getTableHeader().querySelectorAll('th')[n]; - } - - function onFilterInput() { - const searchValue = document.getElementById('fileSearch').value; - const rows = document.getElementsByTagName('tbody')[0].children; - for (let i = 0; i < rows.length; i++) { - const row = rows[i]; - if ( - row.textContent - .toLowerCase() - .includes(searchValue.toLowerCase()) - ) { - row.style.display = ''; - } else { - row.style.display = 'none'; - } - } - } - - // loads the search box - function addSearchBox() { - var template = document.getElementById('filterTemplate'); - var templateClone = template.content.cloneNode(true); - templateClone.getElementById('fileSearch').oninput = onFilterInput; - template.parentElement.appendChild(templateClone); - } - - // loads all columns - function loadColumns() { - var colNodes = getTableHeader().querySelectorAll('th'), - colNode, - cols = [], - col, - i; - - for (i = 0; i < colNodes.length; i += 1) { - colNode = colNodes[i]; - col = { - key: colNode.getAttribute('data-col'), - sortable: !colNode.getAttribute('data-nosort'), - type: colNode.getAttribute('data-type') || 'string' - }; - cols.push(col); - if (col.sortable) { - col.defaultDescSort = col.type === 'number'; - colNode.innerHTML = - colNode.innerHTML + ''; - } - } - return cols; - } - // attaches a data attribute to every tr element with an object - // of data values keyed by column name - function loadRowData(tableRow) { - var tableCols = tableRow.querySelectorAll('td'), - colNode, - col, - data = {}, - i, - val; - for (i = 0; i < tableCols.length; i += 1) { - colNode = tableCols[i]; - col = cols[i]; - val = colNode.getAttribute('data-value'); - if (col.type === 'number') { - val = Number(val); - } - data[col.key] = val; - } - return data; - } - // loads all row data - function loadData() { - var rows = getTableBody().querySelectorAll('tr'), - i; - - for (i = 0; i < rows.length; i += 1) { - rows[i].data = loadRowData(rows[i]); - } - } - // sorts the table using the data for the ith column - function sortByIndex(index, desc) { - var key = cols[index].key, - sorter = function(a, b) { - a = a.data[key]; - b = b.data[key]; - return a < b ? -1 : a > b ? 1 : 0; - }, - finalSorter = sorter, - tableBody = document.querySelector('.coverage-summary tbody'), - rowNodes = tableBody.querySelectorAll('tr'), - rows = [], - i; - - if (desc) { - finalSorter = function(a, b) { - return -1 * sorter(a, b); - }; - } - - for (i = 0; i < rowNodes.length; i += 1) { - rows.push(rowNodes[i]); - tableBody.removeChild(rowNodes[i]); - } - - rows.sort(finalSorter); - - for (i = 0; i < rows.length; i += 1) { - tableBody.appendChild(rows[i]); - } - } - // removes sort indicators for current column being sorted - function removeSortIndicators() { - var col = getNthColumn(currentSort.index), - cls = col.className; - - cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, ''); - col.className = cls; - } - // adds sort indicators for current column being sorted - function addSortIndicators() { - getNthColumn(currentSort.index).className += currentSort.desc - ? ' sorted-desc' - : ' sorted'; - } - // adds event listeners for all sorter widgets - function enableUI() { - var i, - el, - ithSorter = function ithSorter(i) { - var col = cols[i]; - - return function() { - var desc = col.defaultDescSort; - - if (currentSort.index === i) { - desc = !currentSort.desc; - } - sortByIndex(i, desc); - removeSortIndicators(); - currentSort.index = i; - currentSort.desc = desc; - addSortIndicators(); - }; - }; - for (i = 0; i < cols.length; i += 1) { - if (cols[i].sortable) { - // add the click event handler on the th so users - // dont have to click on those tiny arrows - el = getNthColumn(i).querySelector('.sorter').parentElement; - if (el.addEventListener) { - el.addEventListener('click', ithSorter(i)); - } else { - el.attachEvent('onclick', ithSorter(i)); - } - } - } - } - // adds sorting functionality to the UI - return function() { - if (!getTable()) { - return; - } - cols = loadColumns(); - loadData(); - addSearchBox(); - addSortIndicators(); - enableUI(); - }; -})(); - -window.addEventListener('load', addSorting); diff --git a/coverage/lcov-report/utils.ts.html b/coverage/lcov-report/utils.ts.html deleted file mode 100644 index acb88db..0000000 --- a/coverage/lcov-report/utils.ts.html +++ /dev/null @@ -1,538 +0,0 @@ - - - - - - Code coverage report for utils.ts - - - - - - - - - -
-
-

All files utils.ts

-
- -
- 89.09% - Statements - 49/55 -
- - -
- 50% - Branches - 5/10 -
- - -
- 100% - Functions - 14/14 -
- - -
- 88.88% - Lines - 48/54 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

- -
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152  -  -  -  -  -  -  -4x -1615x -  -  -4x -37x -  -  -  -4x -16x -  -  -4x -34x -34x -  -  -4x -25x -25x -  -  -  -4x -8x -  -  -4x -4x -52x -  -  -  -  -4x -3x -3x -3x -3x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -6x -  -  -  -  -  -  -5x -  -  -  -  -  -  -1x -  -  -  -  -  -4x -4x -3x -3x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -4x -2x -  -2x -  -  -  -2x -  -  -2x -  -2x -  -  -  -  -  -  -  -2x -2x -2x -  -2x -2x -  -2x -  -  -  -  -2x -2x -2x -2x -2x -2x -2x - 
/********************************
-     Encoding/Decoding Utils
-********************************/
- 
-import { Base64URLString, NamedAlgo } from "./types"
- 
- 
-export function toBuffer(txt :string) :ArrayBuffer {
-    return Uint8Array.from(txt, c => c.charCodeAt(0)).buffer
-}
- 
-export function parseBuffer(buffer :ArrayBuffer) :string {
-    return String.fromCharCode(...new Uint8Array(buffer))
-}
- 
- 
-export function isBase64url(txt :string) :boolean {
-    return txt.match(/^[a-zA-Z0-9\-_]+=*$/) !== null
-}
- 
-export function toBase64url(buffer :ArrayBuffer) :Base64URLString {
-    const txt = btoa(parseBuffer(buffer)) // base64
-    return txt.replaceAll('+', '-').replaceAll('/', '_')
-}
- 
-export function parseBase64url(txt :Base64URLString) :ArrayBuffer {
-    txt = txt.replaceAll('-', '+').replaceAll('_', '/') // base64url -> base64
-    return toBuffer(atob(txt))
-}
- 
- 
-export async function sha256(buffer :ArrayBuffer) :Promise<ArrayBuffer> {
-    return await crypto.subtle.digest('SHA-256', buffer)
-}
- 
-export function bufferToHex (buffer :ArrayBuffer) :string {
-    return [...new Uint8Array (buffer)]
-        .map (b => b.toString (16).padStart (2, "0"))
-        .join ("");
-}
- 
- 
-export function concatenateBuffers(buffer1 :ArrayBuffer, buffer2  :ArrayBuffer) {
-    var tmp = new Uint8Array(buffer1.byteLength + buffer2.byteLength);
-    tmp.set(new Uint8Array(buffer1), 0);
-    tmp.set(new Uint8Array(buffer2), buffer1.byteLength);
-    return tmp;
-};
- 
- 
- 
-// https://w3c.github.io/webauthn/#sctn-public-key-easy
-// https://www.iana.org/assignments/cose/cose.xhtml#algorithms
-/*
-User agents MUST be able to return a non-null value for getPublicKey() when the credential public key has a COSEAlgorithmIdentifier value of:
- 
--7 (ES256), where kty is 2 (with uncompressed points) and crv is 1 (P-256).
- 
--257 (RS256).
- 
--8 (EdDSA), where crv is 6 (Ed25519).
-*/
-function getAlgoParams(algorithm: NamedAlgo): AlgoParams {
-    switch (algorithm) {
-        case 'RS256':
-            return {
-                name: 'RSASSA-PKCS1-v1_5',
-                hash: 'SHA-256'
-            };
-        case 'ES256':
-            return {
-                name: 'ECDSA',
-                namedCurve: 'P-256',
-                hash: 'SHA-256',
-            };
-        // case 'EdDSA': Not supported by browsers
-        default:
-            throw new Error(`Unknown or unsupported crypto algorithm: ${algorithm}. Only 'RS256' and 'ES256' are supported.`)
-    }
-}
- 
-type AlgoParams = RsaPssParams | EcKeyImportParams | EcdsaParams
- 
-export async function parseCryptoKey(algorithm: NamedAlgo, publicKey: string): Promise<CryptoKey> {
-    const algoParams = getAlgoParams(algorithm)
-    const buffer = parseBase64url(publicKey)
-    return crypto.subtle.importKey('spki', buffer, algoParams, false, ['verify'])
-}
- 
- 
- 
-type VerifyParams = {
-    algorithm: NamedAlgo,
-    publicKey: Base64URLString,
-    authenticatorData: Base64URLString,
-    clientData: Base64URLString,
-    signature: Base64URLString,
-    verbose?: boolean, // Enables debug logs containing sensitive data like crypto keys
-}
- 
- 
-// https://w3c.github.io/webauthn/#sctn-verifying-assertion
-// https://w3c.github.io/webauthn/#sctn-signature-attestation-types
-/* Emphasis mine:
- 
-6.5.6. Signature Formats for Packed Attestation, FIDO U2F Attestation, and **Assertion Signatures**
- 
-[...] For COSEAlgorithmIdentifier -7 (ES256) [...] the sig value MUST be encoded as an ASN.1 [...]
-[...] For COSEAlgorithmIdentifier -257 (RS256) [...] The signature is not ASN.1 wrapped.
-[...] For COSEAlgorithmIdentifier -37 (PS256) [...] The signature is not ASN.1 wrapped.
-*/
-// see also https://gist.github.com/philholden/50120652bfe0498958fd5926694ba354
-export async function verifySignature({ algorithm, publicKey, authenticatorData, clientData, signature, verbose }: VerifyParams): Promise<boolean> {
-    let cryptoKey = await parseCryptoKey(algorithm, publicKey)
- 
-    Iif(verbose) {
-        console.debug(cryptoKey)
-    }
- 
-    let clientHash = await sha256(parseBase64url(clientData));
- 
-    // during "login", the authenticatorData is exactly 37 bytes
-    let comboBuffer = concatenateBuffers(parseBase64url(authenticatorData), clientHash)
- 
-    Iif(verbose) {
-        console.debug('Algorithm: ' + algorithm)
-        console.debug('Public key: ' + publicKey)
-        console.debug('Data: ' + toBase64url(comboBuffer))
-        console.debug('Signature: ' + signature)
-    }
- 
-    // https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify
-    let signatureBuffer = parseBase64url(signature)
-    if(algorithm == 'ES256')
-        signatureBuffer = convertASN1toRaw(signatureBuffer)
- 
-    const algoParams = getAlgoParams(algorithm)
-    const isValid = await crypto.subtle.verify(algoParams, cryptoKey, signatureBuffer, comboBuffer)
- 
-    return isValid
-}
- 
-function convertASN1toRaw(signatureBuffer :ArrayBuffer) {
-    // Convert signature from ASN.1 sequence to "raw" format
-    const signature = new Uint8Array(signatureBuffer);
-    const rStart = signature[4] === 0 ? 5 : 4;
-    const rEnd = rStart + 32;
-    const sStart = signature[rEnd + 2] === 0 ? rEnd + 3 : rEnd + 2;
-    const r = signature.slice(rStart, rEnd);
-    const s = signature.slice(sStart);
-    return new Uint8Array([...r, ...s]);
-}
- -
-
- - - - - - - - \ No newline at end of file diff --git a/coverage/lcov.info b/coverage/lcov.info deleted file mode 100644 index 7d289c4..0000000 --- a/coverage/lcov.info +++ /dev/null @@ -1,425 +0,0 @@ -TN: -SF:src/authenticatorMetadata.ts -FNF:0 -FNH:0 -DA:8,2 -LF:1 -LH:1 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client.ts -FN:7,isAvailable -FN:14,isLocalAuthenticator -FN:23,getAuthAttachment -FN:57,register -FN:141,isAutocompleteAvailable -FN:154,authenticate -FN:210,toPublicKeyCredentialDescriptor -FNF:7 -FNH:7 -FNDA:2,isAvailable -FNDA:2,isLocalAuthenticator -FNDA:6,getAuthAttachment -FNDA:9,register -FNDA:3,isAutocompleteAvailable -FNDA:6,authenticate -FNDA:1,toPublicKeyCredentialDescriptor -DA:2,3 -DA:7,3 -DA:8,2 -DA:14,3 -DA:15,2 -DA:24,6 -DA:25,6 -DA:27,0 -DA:28,0 -DA:29,0 -DA:31,0 -DA:33,0 -DA:41,3 -DA:57,3 -DA:59,9 -DA:60,1 -DA:62,8 -DA:63,1 -DA:65,7 -DA:66,1 -DA:68,6 -DA:69,6 -DA:70,3 -DA:72,6 -DA:98,6 -DA:100,6 -DA:101,1 -DA:102,6 -DA:104,6 -DA:108,5 -DA:110,5 -DA:112,5 -DA:114,5 -DA:115,1 -DA:117,4 -DA:118,4 -DA:119,1 -DA:122,3 -DA:138,3 -DA:141,3 -DA:142,3 -DA:154,3 -DA:155,6 -DA:156,1 -DA:158,5 -DA:159,1 -DA:161,4 -DA:170,4 -DA:172,4 -DA:173,2 -DA:175,4 -DA:177,4 -DA:183,3 -DA:184,1 -DA:186,2 -DA:188,2 -DA:190,2 -DA:193,2 -DA:207,2 -DA:211,1 -DA:212,0 -DA:218,1 -LF:62 -LH:56 -BRDA:24,0,0,6 -BRDA:24,1,0,6 -BRDA:24,1,1,0 -BRDA:27,2,0,0 -BRDA:28,3,0,0 -BRDA:28,3,1,0 -BRDA:28,4,0,0 -BRDA:28,4,1,0 -BRDA:59,5,0,1 -BRDA:62,6,0,1 -BRDA:65,7,0,1 -BRDA:68,8,0,0 -BRDA:68,8,1,6 -BRDA:69,9,0,3 -BRDA:75,10,0,6 -BRDA:75,10,1,6 -BRDA:76,11,0,6 -BRDA:76,11,1,6 -BRDA:81,12,0,6 -BRDA:81,12,1,6 -BRDA:92,13,0,6 -BRDA:92,13,1,6 -BRDA:100,14,0,1 -BRDA:114,15,0,1 -BRDA:118,16,0,1 -BRDA:142,17,0,3 -BRDA:142,17,1,3 -BRDA:155,18,0,1 -BRDA:158,19,0,1 -BRDA:158,20,0,5 -BRDA:158,20,1,1 -BRDA:163,21,0,4 -BRDA:163,21,1,4 -BRDA:172,22,0,2 -BRDA:179,23,0,0 -BRDA:179,23,1,4 -BRDA:183,24,0,1 -BRDA:203,25,0,1 -BRDA:203,25,1,1 -BRDA:211,26,0,0 -BRDA:211,26,1,1 -BRF:41 -BRH:32 -end_of_record -TN: -SF:src/index.ts -FN:7,(anonymous_6) -FNF:1 -FNH:0 -FNDA:0,(anonymous_6) -DA:1,2 -DA:2,2 -DA:3,2 -DA:4,2 -DA:5,2 -DA:7,2 -DA:9,2 -DA:10,2 -LF:8 -LH:8 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/parsers.ts -FN:21,parseClient -FN:28,parseAuthenticator -FN:55,extractRpIdHash -FN:62,extractAaguid -FN:73,getAlgoName -FN:83,parseRegistration -FN:88,toRegistrationInfo -FN:110,toAuthenticationInfo -FN:121,parseAuthentication -FNF:9 -FNH:9 -FNDA:1,parseClient -FNDA:3,parseAuthenticator -FNDA:3,extractRpIdHash -FNDA:3,extractAaguid -FNDA:5,getAlgoName -FNDA:1,parseRegistration -FNDA:1,toRegistrationInfo -FNDA:1,toAuthenticationInfo -FNDA:1,parseAuthentication -DA:1,1 -DA:3,1 -DA:5,1 -DA:21,1 -DA:22,1 -DA:23,1 -DA:24,1 -DA:28,1 -DA:29,3 -DA:30,3 -DA:33,3 -DA:37,3 -DA:56,3 -DA:63,3 -DA:64,0 -DA:65,3 -DA:66,3 -DA:67,3 -DA:68,3 -DA:73,1 -DA:74,5 -DA:75,2 -DA:76,1 -DA:77,1 -DA:78,1 -DA:83,1 -DA:84,1 -DA:85,1 -DA:88,1 -DA:89,1 -DA:90,1 -DA:110,1 -DA:111,1 -DA:121,1 -DA:122,1 -DA:123,1 -LF:36 -LH:35 -BRDA:22,0,0,1 -BRDA:29,1,0,3 -BRDA:63,2,0,0 -BRDA:74,3,0,2 -BRDA:74,3,1,1 -BRDA:74,3,2,1 -BRDA:74,3,3,1 -BRDA:96,4,0,1 -BRDA:96,4,1,1 -BRF:9 -BRH:8 -end_of_record -TN: -SF:src/server.ts -FN:8,randomChallenge -FN:15,isValid -FN:27,isNotValid -FN:38,verifyRegistration -FN:71,verifyAuthentication -FNF:5 -FNH:5 -FNDA:1,randomChallenge -FNDA:20,isValid -FNDA:20,isNotValid -FNDA:5,verifyRegistration -FNDA:11,verifyAuthentication -DA:1,2 -DA:2,2 -DA:4,2 -DA:5,2 -DA:8,2 -DA:9,1 -DA:10,1 -DA:16,20 -DA:17,0 -DA:18,0 -DA:19,0 -DA:21,0 -DA:24,20 -DA:28,20 -DA:38,2 -DA:39,5 -DA:40,5 -DA:41,5 -DA:43,5 -DA:44,1 -DA:46,4 -DA:47,1 -DA:49,3 -DA:50,1 -DA:52,2 -DA:53,1 -DA:55,1 -DA:71,2 -DA:72,11 -DA:73,1 -DA:75,10 -DA:84,10 -DA:85,1 -DA:87,9 -DA:88,9 -DA:90,9 -DA:91,1 -DA:92,1 -DA:95,9 -DA:96,1 -DA:98,8 -DA:99,1 -DA:101,7 -DA:102,1 -DA:105,6 -DA:106,6 -DA:107,6 -DA:108,1 -DA:110,5 -DA:111,1 -DA:113,4 -DA:114,1 -DA:116,3 -DA:117,2 -DA:119,1 -LF:55 -LH:51 -BRDA:16,0,0,0 -BRDA:18,1,0,0 -BRDA:18,1,1,0 -BRDA:43,2,0,1 -BRDA:46,3,0,1 -BRDA:49,4,0,1 -BRDA:52,5,0,1 -BRDA:72,6,0,1 -BRDA:84,7,0,1 -BRDA:90,8,0,1 -BRDA:95,9,0,1 -BRDA:98,10,0,1 -BRDA:101,11,0,1 -BRDA:105,12,0,6 -BRDA:105,12,1,5 -BRDA:107,13,0,1 -BRDA:110,14,0,1 -BRDA:113,15,0,1 -BRDA:113,16,0,4 -BRDA:113,16,1,1 -BRDA:116,17,0,2 -BRDA:116,18,0,3 -BRDA:116,18,1,2 -BRF:23 -BRH:20 -end_of_record -TN: -SF:src/utils.ts -FN:8,toBuffer -FN:9,(anonymous_1) -FN:12,parseBuffer -FN:17,isBase64url -FN:21,toBase64url -FN:26,parseBase64url -FN:32,sha256 -FN:36,bufferToHex -FN:38,(anonymous_8) -FN:43,concatenateBuffers -FN:63,getAlgoParams -FN:84,parseCryptoKey -FN:113,verifySignature -FN:143,convertASN1toRaw -FNF:14 -FNH:14 -FNDA:43,toBuffer -FNDA:1615,(anonymous_1) -FNDA:37,parseBuffer -FNDA:16,isBase64url -FNDA:34,toBase64url -FNDA:25,parseBase64url -FNDA:8,sha256 -FNDA:4,bufferToHex -FNDA:52,(anonymous_8) -FNDA:3,concatenateBuffers -FNDA:6,getAlgoParams -FNDA:4,parseCryptoKey -FNDA:2,verifySignature -FNDA:2,convertASN1toRaw -DA:8,4 -DA:9,1615 -DA:12,4 -DA:13,37 -DA:17,4 -DA:18,16 -DA:21,4 -DA:22,34 -DA:23,34 -DA:26,4 -DA:27,25 -DA:28,25 -DA:32,4 -DA:33,8 -DA:36,4 -DA:37,4 -DA:38,52 -DA:43,4 -DA:44,3 -DA:45,3 -DA:46,3 -DA:47,3 -DA:64,6 -DA:66,0 -DA:71,5 -DA:78,1 -DA:84,4 -DA:85,4 -DA:86,3 -DA:87,3 -DA:113,4 -DA:114,2 -DA:116,2 -DA:117,0 -DA:120,2 -DA:123,2 -DA:125,2 -DA:126,0 -DA:127,0 -DA:128,0 -DA:129,0 -DA:133,2 -DA:134,2 -DA:135,2 -DA:137,2 -DA:138,2 -DA:140,2 -DA:145,2 -DA:146,2 -DA:147,2 -DA:148,2 -DA:149,2 -DA:150,2 -DA:151,2 -LF:54 -LH:48 -BRDA:64,0,0,0 -BRDA:64,0,1,5 -BRDA:64,0,2,1 -BRDA:116,1,0,0 -BRDA:125,2,0,0 -BRDA:134,3,0,2 -BRDA:146,4,0,0 -BRDA:146,4,1,2 -BRDA:148,5,0,0 -BRDA:148,5,1,2 -BRF:10 -BRH:5 -end_of_record