           const assertion = await navigator.credentials.get({publicKey: pubKey});
                         console.log(assertion);
                         return {
                             "challenge": resp.challenge,
                             "credential-id": btoa(String.fromCharCode(...new Uint8Array(assertion.rawId))),
                             "user-handle": btoa(email),
                             "authenticator-data": btoa(String.fromCharCode(...new Uint8Array(assertion.response.authentic