Socket
Book a DemoInstallSign in
Socket

@1auth/authn-webauthn

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@1auth/authn-webauthn - npm Package Compare versions

Comparing version

to
0.0.0-alpha.48

17

index.js

@@ -5,2 +5,3 @@ import {

count as authnCount,
select as authnSelect,
list as authnList,

@@ -196,3 +197,3 @@ create as authnCreate,

const excludeCredentials = []
for (let i = credentials.length; i--;) {
for (let i = credentials.length; i--; ) {
const credential = credentials[i]

@@ -258,7 +259,3 @@ const value = options.secret.decode(credential.value)

}
const { registrationInfo } = await authnVerify(
options.token,
sub,
credential
)
const { registrationInfo } = await authnVerify(options.token, sub, credential)
return registrationInfo

@@ -280,3 +277,3 @@ }

const allowCredentials = []
for (let i = credentials.length; i--;) {
for (let i = credentials.length; i--; ) {
const credential = credentials[i]

@@ -298,3 +295,3 @@ const authenticator = options.secret.decode(credential.value)

const challenges = []
for (let i = credentials.length; i--;) {
for (let i = credentials.length; i--; ) {
const credential = credentials[i]

@@ -341,2 +338,6 @@ const authenticator = options.secret.decode(credential.value)

export const select = async (sub, id) => {
return await authnSelect(options.secret, sub, id)
}
const jsonEncodeSecret = (value) => {

@@ -343,0 +344,0 @@ // value.credential.id = credentialNormalize(value.credential.id);

{
"name": "@1auth/authn-webauthn",
"version": "0.0.0-alpha.47",
"version": "0.0.0-alpha.48",
"description": "",

@@ -5,0 +5,0 @@ "type": "module",

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.