From cbfa15930382f98e215c2e68103e5ac8770b22fe Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Tue, 27 Dec 2022 20:51:40 -0800 Subject: Be more cautious with transports --- packages/typescript-types/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/typescript-types') diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index 13d63bd..85f3ef5 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -128,7 +128,8 @@ export interface AuthenticationResponseJSON { export interface AuthenticatorAttestationResponseJSON { clientDataJSON: Base64URLString; attestationObject: Base64URLString; - transports: AuthenticatorTransportFuture[]; + // Optional in L2, but becomes required in L3. Play it safe until L3 becomes Recommendation + transports?: AuthenticatorTransportFuture[]; } /** -- cgit v1.2.3