@simplewebauthn/server
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -8,2 +8,3 @@ import type { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/typescript-types'; | ||
userVerification?: UserVerificationRequirement; | ||
extensions?: AuthenticationExtensionsClientInputs; | ||
}; | ||
@@ -20,4 +21,5 @@ /** | ||
* set to `'preferred'` or `'required'` as desired. | ||
* @param extensions Additional plugins the authenticator or browser should use during assertion | ||
*/ | ||
export default function generateAssertionOptions(options: Options): PublicKeyCredentialRequestOptionsJSON; | ||
export {}; |
@@ -13,5 +13,6 @@ "use strict"; | ||
* set to `'preferred'` or `'required'` as desired. | ||
* @param extensions Additional plugins the authenticator or browser should use during assertion | ||
*/ | ||
function generateAssertionOptions(options) { | ||
const { challenge, allowedBase64CredentialIDs, suggestedTransports = ['usb', 'ble', 'nfc', 'internal'], timeout = 60000, userVerification, } = options; | ||
const { challenge, allowedBase64CredentialIDs, suggestedTransports = ['usb', 'ble', 'nfc', 'internal'], timeout = 60000, userVerification, extensions, } = options; | ||
return { | ||
@@ -26,2 +27,3 @@ challenge, | ||
userVerification, | ||
extensions, | ||
}; | ||
@@ -28,0 +30,0 @@ } |
@@ -14,2 +14,3 @@ import { PublicKeyCredentialCreationOptionsJSON } from '@simplewebauthn/typescript-types'; | ||
authenticatorSelection?: AuthenticatorSelectionCriteria; | ||
extensions?: AuthenticationExtensionsClientInputs; | ||
}; | ||
@@ -34,4 +35,5 @@ /** | ||
* may be used | ||
* @param extensions Additional plugins the authenticator or browser should use during attestation | ||
*/ | ||
export default function generateAttestationOptions(options: Options): PublicKeyCredentialCreationOptionsJSON; | ||
export {}; |
@@ -21,5 +21,6 @@ "use strict"; | ||
* may be used | ||
* @param extensions Additional plugins the authenticator or browser should use during attestation | ||
*/ | ||
function generateAttestationOptions(options) { | ||
const { serviceName, rpID, challenge, userID, userName, userDisplayName = userName, timeout = 60000, attestationType = 'none', excludedBase64CredentialIDs = [], suggestedTransports = ['usb', 'ble', 'nfc', 'internal'], authenticatorSelection, } = options; | ||
const { serviceName, rpID, challenge, userID, userName, userDisplayName = userName, timeout = 60000, attestationType = 'none', excludedBase64CredentialIDs = [], suggestedTransports = ['usb', 'ble', 'nfc', 'internal'], authenticatorSelection, extensions, } = options; | ||
return { | ||
@@ -50,2 +51,3 @@ challenge, | ||
authenticatorSelection, | ||
extensions, | ||
}; | ||
@@ -52,0 +54,0 @@ } |
{ | ||
"name": "@simplewebauthn/server", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "SimpleWebAuthn for Servers", | ||
@@ -36,3 +36,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "7eddfd75b8fbe5f32105632a9f9c84e8a036d836" | ||
"gitHead": "9dfb900fe5380625006df2187d3753cf09ff308b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
70059
1021