Skip to content

Commit ba43996

Browse files
authored
Update simplewebauthn and related packages (#11309)
* Upgrade @simplewebauthn/server to 13.2.2 - Remove @simplewebauthn/types (now bundled in server package) - Update type imports in webauthn.ts - Add webauthn test coverage * update @peculiar/asn1-x509 * lint
1 parent 2350645 commit ba43996

File tree

4 files changed

+304
-46
lines changed

4 files changed

+304
-46
lines changed

package-lock.json

Lines changed: 149 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,11 @@
5151
"@opentelemetry/sdk-trace-base": "1.30.1",
5252
"@paypal/payouts-sdk": "1.1.1",
5353
"@peculiar/asn1-schema": "2.6.0",
54-
"@peculiar/asn1-x509": "2.3.15",
54+
"@peculiar/asn1-x509": "2.6.0",
5555
"@sentry/node": "9.47.1",
5656
"@sentry/profiling-node": "9.47.1",
5757
"@shopify/address": "4.3.0",
58-
"@simplewebauthn/server": "11.0.0",
59-
"@simplewebauthn/types": "11.0.0",
58+
"@simplewebauthn/server": "13.2.2",
6059
"argparse": "2.0.1",
6160
"async-mutex": "0.5.0",
6261
"axios": "1.13.2",

server/lib/two-factor-authentication/webauthn.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import crypto from 'crypto';
22

33
import { AsnParser, OctetString } from '@peculiar/asn1-schema';
44
import { Certificate } from '@peculiar/asn1-x509';
5-
import * as simplewebauthn from '@simplewebauthn/server';
6-
import { decodeAttestationObject } from '@simplewebauthn/server/helpers';
75
import type {
86
AuthenticationResponseJSON,
97
PublicKeyCredentialCreationOptionsJSON,
108
RegistrationResponseJSON,
11-
} from '@simplewebauthn/types';
9+
} from '@simplewebauthn/server';
10+
import * as simplewebauthn from '@simplewebauthn/server';
11+
import { decodeAttestationObject } from '@simplewebauthn/server/helpers';
1212
import config from 'config';
1313

1414
import { ApolloError } from '../../graphql/errors';

0 commit comments

Comments
 (0)