UNPKG
@turnkey/webauthn-stamper
Version:
beta (0.6.0-beta.0)
latest (0.6.0)
0.6.0
0.6.0-beta.0
0.5.1
0.5.0
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
0.2.0
0.1.0
Webauthn stamper for @turnkey/http
github.com/tkhq/sdk
tkhq/sdk
@turnkey/webauthn-stamper
/
dist
/
webauthn-json
/
index.mjs
11 lines
(8 loc)
•
275 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{ getResponseToJSON }
from
'./api.mjs'
;
async
function
get
(
options
) {
const
response = (
await
navigator.
credentials
.
get
(options)); response.
toJSON
=
() =>
getResponseToJSON
(response);
return
response; }
export
{ get };
//# sourceMappingURL=index.mjs.map