@simplewebauthn/server
Advanced tools
Comparing version 0.10.4 to 0.10.5
/// <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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198613
35