@@ -92,8 +92,7 @@ let defaultCreateOrReplaceCredOpts = {
9292 * @param {PublicKeyCredential } cred
9393 */
9494function pubkeyRegisterToJSON ( cred ) {
95- /** @type {AuthenticatorAttestationResponse } */
96- //@ts -ignore
95+ /** @type {AuthenticatorAttestationResponse } */ //@ts -ignore
9796 let attResp = cred . response ;
9897
9998 // Convert the credential response to plain JSON
@@ -179,8 +178,7 @@ let defaultGetCredOpts = {
179178 * @param {PublicKeyCredential } cred
180179 */
181180function pubkeyAuthToJSON ( cred ) {
182- /** @type {AuthenticatorAssertionResponse } */
183- //@ts -ignore
181+ /** @type {AuthenticatorAssertionResponse } */ //@ts -ignore
184182 let assResp = cred . response ;
185183
186184 // Convert the credential response to plain JSON
@@ -280,8 +278,7 @@ async function createOrReplacePublicKey(event) {
280278 }
281279 return ;
282280 }
283- /** @type {PublicKeyCredential } */
284- //@ts -ignore
281+ /** @type {PublicKeyCredential } */ //@ts -ignore
285282 let pubkeyRegistration = pubkeyRegResp ;
286283
287284 console . log ( `createCredential response opaque:` ) ;
@@ -316,8 +313,7 @@ async function authorizePasskey(authRequestOpts) {
316313 console . warn ( "WebAuthn was changed, restarted, failed, or canceled" ) ;
317314 return ;
318315 }
319- /** @type {PublicKeyCredential } */
320- //@ts -ignore
316+ /** @type {PublicKeyCredential } */ //@ts -ignore
321317 let pubkeyAuthentication = pubkeyAuthResp ;
322318
323319 console . log ( "getPublicKey() pubkeyAuthReq" , pubkeyAuthentication ) ;
0 commit comments