@simplewebauthn/server 8.3.6 → 8.3.7
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/helpers/index.d.ts
CHANGED
|
@@ -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.
|
|
116
|
+
_challenge = isoUint8Array.fromUTF8String(_challenge);
|
|
117
117
|
}
|
|
118
118
|
return {
|
|
119
119
|
challenge: isoBase64URL.fromBuffer(_challenge),
|
package/package.json
CHANGED
|
@@ -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.
|
|
119
|
+
_challenge = index_js_1.isoUint8Array.fromUTF8String(_challenge);
|
|
120
120
|
}
|
|
121
121
|
return {
|
|
122
122
|
challenge: index_js_1.isoBase64URL.fromBuffer(_challenge),
|