Skip to content

Commit

Permalink
docs: highly recommend using challenges
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerbuuun committed Sep 30, 2024
1 parent 67e90e8 commit 82e647b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ export default defineWebAuthnAuthenticateEventHandler({
```

> [!IMPORTANT]
> Webauthn uses challenges to prevent replay attacks. By default, this module does not make use if this feature. If you want to use challenges, the `storeChallenge` and `getChallenge` functions are provided. An attempt ID is created and sent with each autentication request. You can use this ID to store the challenge in a database or KV store as shown in the example below.
> Webauthn uses challenges to prevent replay attacks. By default, this module does not make use if this feature. If you want to use challenges (**which is highly recommended**), the `storeChallenge` and `getChallenge` functions are provided. An attempt ID is created and sent with each autentication request. You can use this ID to store the challenge in a database or KV store as shown in the example below.
> ```ts
> export default defineWebAuthnAuthenticateEventHandler({
Expand Down

0 comments on commit 82e647b

Please sign in to comment.