File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
packages/identity/src/identity Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 22
33## [ Unreleased]
44
5+ * fix: work around ` PublicKeyCredential ` not being enumerable
6+
57## [ 1.1.0] - 2024-03-18
68
79### Added
Original file line number Diff line number Diff line change @@ -112,7 +112,12 @@ async function _createCredential(
112112 }
113113
114114 return {
115- ...creds ,
115+ // do _not_ use ...creds here, as creds is not enumerable in all cases
116+ id : creds . id ,
117+ response : creds . response ,
118+ type : creds . type ,
119+ authenticatorAttachment : creds . authenticatorAttachment ,
120+ getClientExtensionResults : creds . getClientExtensionResults ,
116121 // Some password managers will return a Uint8Array, so we ensure we return an ArrayBuffer.
117122 rawId : bufFromBufLike ( creds . rawId ) ,
118123 } ;
You can’t perform that action at this time.
0 commit comments