@simplewebauthn/server
Advanced tools
Comparing version 0.10.2 to 0.10.3
@@ -9,2 +9,3 @@ /// <reference types="node" /> | ||
extensions?: AuthenticationExtensionsClientInputs; | ||
rpID?: string; | ||
}; | ||
@@ -21,4 +22,5 @@ /** | ||
* @param extensions Additional plugins the authenticator or browser should use during assertion | ||
* @param rpID Valid domain name (after `https://`) | ||
*/ | ||
export default function generateAssertionOptions(options: Options): PublicKeyCredentialRequestOptionsJSON; | ||
export {}; |
@@ -18,5 +18,6 @@ "use strict"; | ||
* @param extensions Additional plugins the authenticator or browser should use during assertion | ||
* @param rpID Valid domain name (after `https://`) | ||
*/ | ||
function generateAssertionOptions(options) { | ||
const { allowCredentials, challenge = generateChallenge_1.default(), timeout = 60000, userVerification, extensions, } = options; | ||
const { allowCredentials, challenge = generateChallenge_1.default(), timeout = 60000, userVerification, extensions, rpID, } = options; | ||
return { | ||
@@ -28,2 +29,3 @@ challenge: base64url_1.default.encode(challenge), | ||
extensions, | ||
rpId: rpID, | ||
}; | ||
@@ -30,0 +32,0 @@ } |
{ | ||
"name": "@simplewebauthn/server", | ||
"version": "0.10.2", | ||
"version": "0.10.3", | ||
"description": "SimpleWebAuthn for Servers", | ||
@@ -47,3 +47,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "c47cc9bde943f17b1bf3dabee2d91b7fbad44352", | ||
"gitHead": "c7859df0c5d29931a35c3e7b7345f91ae55c3dcf", | ||
"devDependencies": { | ||
@@ -50,0 +50,0 @@ "@types/cbor": "^5.0.1", |
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
197107
3101