Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@simplewebauthn/server

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@simplewebauthn/server - npm Package Compare versions

Comparing version 8.0.1 to 8.1.0

2

esm/authentication/verifyAuthenticationResponse.d.ts

@@ -5,3 +5,3 @@ import type { AuthenticationResponseJSON, AuthenticatorDevice, CredentialDeviceType, UserVerificationRequirement } from '../deps.js';

response: AuthenticationResponseJSON;
expectedChallenge: string | ((challenge: string) => boolean);
expectedChallenge: string | ((challenge: string) => boolean | Promise<boolean>);
expectedOrigin: string | string[];

@@ -8,0 +8,0 @@ expectedRPID: string | string[];

@@ -56,3 +56,3 @@ import { decodeClientDataJSON } from '../helpers/decodeClientDataJSON.js';

if (typeof expectedChallenge === 'function') {
if (!expectedChallenge(challenge)) {
if (!(await expectedChallenge(challenge))) {
throw new Error(`Custom challenge verifier returned false for registration response challenge "${challenge}"`);

@@ -59,0 +59,0 @@ }

@@ -6,3 +6,3 @@ import type { COSEAlgorithmIdentifier, CredentialDeviceType, RegistrationResponseJSON } from '../deps.js';

response: RegistrationResponseJSON;
expectedChallenge: string | ((challenge: string) => boolean);
expectedChallenge: string | ((challenge: string) => boolean | Promise<boolean>);
expectedOrigin: string | string[];

@@ -9,0 +9,0 @@ expectedRPID?: string | string[];

@@ -57,3 +57,3 @@ import { decodeAttestationObject, } from '../helpers/decodeAttestationObject.js';

if (typeof expectedChallenge === 'function') {
if (!expectedChallenge(challenge)) {
if (!(await expectedChallenge(challenge))) {
throw new Error(`Custom challenge verifier returned false for registration response challenge "${challenge}"`);

@@ -60,0 +60,0 @@ }

@@ -5,3 +5,3 @@ {

"name": "@simplewebauthn/server",
"version": "8.0.1",
"version": "8.1.0",
"description": "SimpleWebAuthn for Servers",

@@ -8,0 +8,0 @@ "license": "MIT",

@@ -5,3 +5,3 @@ import type { AuthenticationResponseJSON, AuthenticatorDevice, CredentialDeviceType, UserVerificationRequirement } from '../deps.js';

response: AuthenticationResponseJSON;
expectedChallenge: string | ((challenge: string) => boolean);
expectedChallenge: string | ((challenge: string) => boolean | Promise<boolean>);
expectedOrigin: string | string[];

@@ -8,0 +8,0 @@ expectedRPID: string | string[];

@@ -59,3 +59,3 @@ "use strict";

if (typeof expectedChallenge === 'function') {
if (!expectedChallenge(challenge)) {
if (!(await expectedChallenge(challenge))) {
throw new Error(`Custom challenge verifier returned false for registration response challenge "${challenge}"`);

@@ -62,0 +62,0 @@ }

@@ -6,3 +6,3 @@ import type { COSEAlgorithmIdentifier, CredentialDeviceType, RegistrationResponseJSON } from '../deps.js';

response: RegistrationResponseJSON;
expectedChallenge: string | ((challenge: string) => boolean);
expectedChallenge: string | ((challenge: string) => boolean | Promise<boolean>);
expectedOrigin: string | string[];

@@ -9,0 +9,0 @@ expectedRPID?: string | string[];

@@ -60,3 +60,3 @@ "use strict";

if (typeof expectedChallenge === 'function') {
if (!expectedChallenge(challenge)) {
if (!(await expectedChallenge(challenge))) {
throw new Error(`Custom challenge verifier returned false for registration response challenge "${challenge}"`);

@@ -63,0 +63,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc