You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BUNDLERS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ The plugins for Astro, Vite, and Webpack are included in the `bundler-plugins/`
27
27
28
28
**Note:** The [`ASN1` dependency](https://github.com/yoursunny/asn1.js) is [licensed under MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/), which is generally compatible with this library's [MIT license](LICENSE.txt). However, MPL 2.0 specifically requires preservation of the copyright/license header (block comment at top of `asn1.all.min.js`). To comply with this licensing requirement, ensure your tooling does not remove this comment from the bundle file.
29
29
30
-
### Astro Plugin
30
+
### Astro Plugin (aka Integration)
31
31
32
32
If using Astro 4+, it's strongly suggested to import this library's Astro-plugin to manage the loading of its non-ESM dependencies. Add something like the following to your `astro.config.mjs` file:
To authenticate (i.e., [perform an assertion](https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API/Attestation_and_Assertion#assertion)) with an existing credential via a `WebAuthn`-exposed authenticator, use `auth()`:
For certain UX flows, such as switching from the conditional-mediation to another authentication approach, you will need to cancel (via `signal`) a previous call to `auth()` before invoking an `auth()` call with different options. But calling `abort()` causes that pending `auth()` to throw an exception. To suppress this exception when resetting, pass the `resetAbortReason` value:
var authResult =awaitauth({ /* .. */ , signal:cancelToken.signal });
@@ -217,7 +217,7 @@ If `auth()` completes completes successfully, the return value (`authResult` abo
217
217
To verify an authentication response (from `auth()`), use `verifyAuthResponse()`:
218
218
219
219
```js
220
-
import { verifyAuthResponse, } from "...";
220
+
import { verifyAuthResponse, } from "..";
221
221
222
222
var publicKey =...// aka, regResult.response.publicKey
223
223
@@ -234,7 +234,7 @@ You will need to have preserved `regResult.response.publicKey` (and likely `regR
234
234
Further, if you used `packPublicKeyJSON()` on the original `publicKey` value to store/transmit it, you'll need to use `unpackPublicKeyJSON()` before passing it to `verifyAuthResponse()`:
0 commit comments