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
84
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 0.10.4 to 0.10.5

6

dist/assertion/generateAssertionOptions.d.ts
/// <reference types="node" />
import type { AuthenticationExtensionsClientInputs, PublicKeyCredentialRequestOptionsJSON, PublicKeyCredentialDescriptorJSON, UserVerificationRequirement } from '@simplewebauthn/typescript-types';
declare type Options = {
allowCredentials: PublicKeyCredentialDescriptorJSON[];
allowCredentials?: PublicKeyCredentialDescriptorJSON[];
challenge?: string | Buffer;

@@ -14,3 +14,3 @@ timeout?: number;

*
* @param allowCredentials Authenticators previously registered by the user
* @param allowCredentials Authenticators previously registered by the user, if any. If undefined the client will ask the user which credential they want to use
* @param challenge Random value the authenticator needs to sign and pass back

@@ -24,3 +24,3 @@ * user for assertion

*/
export default function generateAssertionOptions(options: Options): PublicKeyCredentialRequestOptionsJSON;
export default function generateAssertionOptions(options?: Options): PublicKeyCredentialRequestOptionsJSON;
export {};

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

*
* @param allowCredentials Authenticators previously registered by the user
* @param allowCredentials Authenticators previously registered by the user, if any. If undefined the client will ask the user which credential they want to use
* @param challenge Random value the authenticator needs to sign and pass back

@@ -21,3 +21,3 @@ * user for assertion

*/
function generateAssertionOptions(options) {
function generateAssertionOptions(options = {}) {
const { allowCredentials, challenge = generateChallenge_1.default(), timeout = 60000, userVerification, extensions, rpID, } = options;

@@ -24,0 +24,0 @@ return {

{
"name": "@simplewebauthn/server",
"version": "0.10.4",
"version": "0.10.5",
"description": "SimpleWebAuthn for Servers",

@@ -38,3 +38,3 @@ "main": "dist/index.js",

"@peculiar/asn1-x509": "^2.0.26",
"@simplewebauthn/typescript-types": "^0.10.4",
"@simplewebauthn/typescript-types": "^0.10.5",
"base64url": "^3.0.1",

@@ -48,3 +48,3 @@ "cbor": "^5.1.0",

},
"gitHead": "9a360ddfe82a5dbe1bc2201aeb68139a95612b5e",
"gitHead": "1696ddee5c5048e634b5598638677b899226a153",
"devDependencies": {

@@ -51,0 +51,0 @@ "@types/cbor": "^5.0.1",

@@ -26,3 +26,3 @@ <!-- omit in toc -->

SimpleWebAuthn supports [all six WebAuthn attestation formats](https://w3c.github.io/webauthn/#sctn-defined-attestation-formats), including:
SimpleWebAuthn supports [all current WebAuthn attestation formats](https://w3c.github.io/webauthn/#sctn-defined-attestation-formats), including:

@@ -35,1 +35,2 @@ - **Packed**

- **None**
- **Apple**

Sorry, the diff of this file is not supported yet

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