@simplewebauthn/server
Advanced tools
Comparing version 2.1.0 to 2.2.0
/// <reference types="node" /> | ||
import type { AuthenticationExtensionsClientInputs, PublicKeyCredentialRequestOptionsJSON, PublicKeyCredentialDescriptor, UserVerificationRequirement } from '@simplewebauthn/typescript-types'; | ||
declare type Options = { | ||
export declare type GenerateAssertionOptionsOpts = { | ||
allowCredentials?: PublicKeyCredentialDescriptor[]; | ||
@@ -24,3 +24,2 @@ challenge?: string | Buffer; | ||
*/ | ||
export default function generateAssertionOptions(options?: Options): PublicKeyCredentialRequestOptionsJSON; | ||
export {}; | ||
export default function generateAssertionOptions(options?: GenerateAssertionOptionsOpts): PublicKeyCredentialRequestOptionsJSON; |
/// <reference types="node" /> | ||
import { AssertionCredentialJSON, AuthenticatorDevice, UserVerificationRequirement } from '@simplewebauthn/typescript-types'; | ||
declare type Options = { | ||
export declare type VerifyAssertionResponseOpts = { | ||
credential: AssertionCredentialJSON; | ||
@@ -26,3 +26,3 @@ expectedChallenge: string; | ||
*/ | ||
export default function verifyAssertionResponse(options: Options): VerifiedAssertion; | ||
export default function verifyAssertionResponse(options: VerifyAssertionResponseOpts): VerifiedAssertion; | ||
/** | ||
@@ -46,2 +46,1 @@ * Result of assertion verification | ||
}; | ||
export {}; |
/// <reference types="node" /> | ||
import type { AttestationConveyancePreference, AuthenticationExtensionsClientInputs, AuthenticatorSelectionCriteria, COSEAlgorithmIdentifier, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialDescriptor } from '@simplewebauthn/typescript-types'; | ||
declare type Options = { | ||
export declare type GenerateAttestationOptionsOpts = { | ||
rpName: string; | ||
@@ -44,3 +44,2 @@ rpID: string; | ||
*/ | ||
export default function generateAttestationOptions(options: Options): PublicKeyCredentialCreationOptionsJSON; | ||
export {}; | ||
export default function generateAttestationOptions(options: GenerateAttestationOptionsOpts): PublicKeyCredentialCreationOptionsJSON; |
/// <reference types="node" /> | ||
import { AttestationCredentialJSON, COSEAlgorithmIdentifier } from '@simplewebauthn/typescript-types'; | ||
import { ATTESTATION_FORMAT } from "../helpers/decodeAttestationObject"; | ||
declare type Options = { | ||
export declare type VerifyAttestationResponseOpts = { | ||
credential: AttestationCredentialJSON; | ||
@@ -27,3 +27,3 @@ expectedChallenge: string; | ||
*/ | ||
export default function verifyAttestationResponse(options: Options): Promise<VerifiedAttestation>; | ||
export default function verifyAttestationResponse(options: VerifyAttestationResponseOpts): Promise<VerifiedAttestation>; | ||
/** | ||
@@ -58,2 +58,1 @@ * Result of attestation verification | ||
}; | ||
export {}; |
@@ -11,1 +11,6 @@ /** | ||
export { generateAttestationOptions, verifyAttestationResponse, generateAssertionOptions, verifyAssertionResponse, MetadataService, }; | ||
import type { GenerateAttestationOptionsOpts } from "./attestation/generateAttestationOptions"; | ||
import type { GenerateAssertionOptionsOpts } from "./assertion/generateAssertionOptions"; | ||
import type { VerifiedAttestation, VerifyAttestationResponseOpts } from "./attestation/verifyAttestationResponse"; | ||
import type { VerifiedAssertion, VerifyAssertionResponseOpts } from "./assertion/verifyAssertionResponse"; | ||
export type { GenerateAttestationOptionsOpts, GenerateAssertionOptionsOpts, VerifyAttestationResponseOpts, VerifyAssertionResponseOpts, VerifiedAttestation, VerifiedAssertion, }; |
{ | ||
"name": "@simplewebauthn/server", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "SimpleWebAuthn for Servers", | ||
@@ -47,3 +47,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "369b9717c2f81dcfe06eb5088a9f16d2b2513e84", | ||
"gitHead": "9791fa44b690020dc43f15e5d5ade451c6b0e914", | ||
"devDependencies": { | ||
@@ -50,0 +50,0 @@ "@types/cbor": "^5.0.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
205322
3218