@simplewebauthn/server 8.3.6 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/deps.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type { AttestationConveyancePreference, AuthenticationExtensionsClientInputs, AuthenticationResponseJSON, AuthenticatorDevice, AuthenticatorSelectionCriteria, Base64URLString, COSEAlgorithmIdentifier, CredentialDeviceType, Crypto, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialDescriptorFuture, PublicKeyCredentialParameters, PublicKeyCredentialRequestOptionsJSON, RegistrationResponseJSON, UserVerificationRequirement, } from '@simplewebauthn/typescript-types';
1
+ export type { AttestationConveyancePreference, AuthenticationExtensionsClientInputs, AuthenticationResponseJSON, AuthenticatorDevice, AuthenticatorSelectionCriteria, Base64URLString, COSEAlgorithmIdentifier, CredentialDeviceType, Crypto, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialDescriptorFuture, PublicKeyCredentialParameters, PublicKeyCredentialRequestOptionsJSON, RegistrationResponseJSON, UserVerificationRequirement, } from '@simplewebauthn/types';
2
2
  export * as cborx from 'cbor-x/encode';
3
3
  export { default as base64 } from '@hexagon/base64';
4
4
  export { fetch as crossFetch } from 'cross-fetch';
@@ -17,6 +17,6 @@ export { convertAAGUIDToString, convertCertBufferToPEM, convertCOSEtoPKCS, cose,
17
17
  import type { AttestationFormat, AttestationObject, AttestationStatement } from './decodeAttestationObject.js';
18
18
  import type { CertificateInfo } from './getCertificateInfo.js';
19
19
  import type { ClientDataJSON } from './decodeClientDataJSON.js';
20
- import type { COSEPublicKey } from './cose.js';
20
+ import type { COSEPublicKey, COSEPublicKeyEC2, COSEPublicKeyOKP, COSEPublicKeyRSA } from './cose.js';
21
21
  import type { ParsedAuthenticatorData } from './parseAuthenticatorData.js';
22
- export type { AttestationFormat, AttestationObject, AttestationStatement, CertificateInfo, ClientDataJSON, COSEPublicKey, ParsedAuthenticatorData, };
22
+ export type { AttestationFormat, AttestationObject, AttestationStatement, CertificateInfo, ClientDataJSON, COSEPublicKey, COSEPublicKeyEC2, COSEPublicKeyOKP, COSEPublicKeyRSA, ParsedAuthenticatorData, };
@@ -113,7 +113,7 @@ export async function generateRegistrationOptions(options) {
113
113
  */
114
114
  let _challenge = challenge;
115
115
  if (typeof _challenge === 'string') {
116
- _challenge = isoUint8Array.fromASCIIString(_challenge);
116
+ _challenge = isoUint8Array.fromUTF8String(_challenge);
117
117
  }
118
118
  return {
119
119
  challenge: isoBase64URL.fromBuffer(_challenge),
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "module": "./esm/index.js",
3
3
  "main": "./script/index.js",
4
4
  "name": "@simplewebauthn/server",
5
- "version": "8.3.6",
5
+ "version": "9.0.0",
6
6
  "description": "SimpleWebAuthn for Servers",
7
7
  "license": "MIT",
8
8
  "author": "Matthew Miller <matthew@millerti.me>",
@@ -55,7 +55,7 @@
55
55
  "@peculiar/asn1-rsa": "^2.3.8",
56
56
  "@peculiar/asn1-schema": "^2.3.8",
57
57
  "@peculiar/asn1-x509": "^2.3.8",
58
- "@simplewebauthn/typescript-types": "^8.3.4",
58
+ "@simplewebauthn/types": "^9.0.0",
59
59
  "cbor-x": "^1.5.2",
60
60
  "cross-fetch": "^4.0.0"
61
61
  },
package/script/deps.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type { AttestationConveyancePreference, AuthenticationExtensionsClientInputs, AuthenticationResponseJSON, AuthenticatorDevice, AuthenticatorSelectionCriteria, Base64URLString, COSEAlgorithmIdentifier, CredentialDeviceType, Crypto, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialDescriptorFuture, PublicKeyCredentialParameters, PublicKeyCredentialRequestOptionsJSON, RegistrationResponseJSON, UserVerificationRequirement, } from '@simplewebauthn/typescript-types';
1
+ export type { AttestationConveyancePreference, AuthenticationExtensionsClientInputs, AuthenticationResponseJSON, AuthenticatorDevice, AuthenticatorSelectionCriteria, Base64URLString, COSEAlgorithmIdentifier, CredentialDeviceType, Crypto, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialDescriptorFuture, PublicKeyCredentialParameters, PublicKeyCredentialRequestOptionsJSON, RegistrationResponseJSON, UserVerificationRequirement, } from '@simplewebauthn/types';
2
2
  export * as cborx from 'cbor-x/encode';
3
3
  export { default as base64 } from '@hexagon/base64';
4
4
  export { fetch as crossFetch } from 'cross-fetch';
@@ -17,6 +17,6 @@ export { convertAAGUIDToString, convertCertBufferToPEM, convertCOSEtoPKCS, cose,
17
17
  import type { AttestationFormat, AttestationObject, AttestationStatement } from './decodeAttestationObject.js';
18
18
  import type { CertificateInfo } from './getCertificateInfo.js';
19
19
  import type { ClientDataJSON } from './decodeClientDataJSON.js';
20
- import type { COSEPublicKey } from './cose.js';
20
+ import type { COSEPublicKey, COSEPublicKeyEC2, COSEPublicKeyOKP, COSEPublicKeyRSA } from './cose.js';
21
21
  import type { ParsedAuthenticatorData } from './parseAuthenticatorData.js';
22
- export type { AttestationFormat, AttestationObject, AttestationStatement, CertificateInfo, ClientDataJSON, COSEPublicKey, ParsedAuthenticatorData, };
22
+ export type { AttestationFormat, AttestationObject, AttestationStatement, CertificateInfo, ClientDataJSON, COSEPublicKey, COSEPublicKeyEC2, COSEPublicKeyOKP, COSEPublicKeyRSA, ParsedAuthenticatorData, };
@@ -116,7 +116,7 @@ async function generateRegistrationOptions(options) {
116
116
  */
117
117
  let _challenge = challenge;
118
118
  if (typeof _challenge === 'string') {
119
- _challenge = index_js_1.isoUint8Array.fromASCIIString(_challenge);
119
+ _challenge = index_js_1.isoUint8Array.fromUTF8String(_challenge);
120
120
  }
121
121
  return {
122
122
  challenge: index_js_1.isoBase64URL.fromBuffer(_challenge),