From e8189ea5653f08d6cf21dcbd14dc5130121249a4 Mon Sep 17 00:00:00 2001 From: ildyria Date: Sun, 10 Jul 2022 12:29:46 +0200 Subject: [PATCH] fix typos --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3f72a87..ecc862a 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ From here you're ready to work with WebAuthn Authentication. The following steps ### 4. Register the routes and controllers -WebAuthn uses exclusive routes to register and authenticate users. Creating these routes and controller may be cumbersome, specially if it's your first time in the WebAuthn real. +WebAuthn uses exclusive routes to register and authenticate users. Creating these routes and controller may be cumbersome, specially if it's your first time in the WebAuthn realm. Instead, go for a quick start and publish the controllers included in Laragear WebAuthn. These controllers will be located at `app\Http\Controllers\WebAuthn`. @@ -152,7 +152,7 @@ This package includes a simple but convenient script to handle WebAuthn Attestat php artisan vendor:publish --provider="Laragear\WebAuthn\WebAuthnServiceProvider" --tag="js" ``` -You will receive the `resources/js/vendor/webauthn/webauthn.js` file which you can include into your authentication views and use it programmatically, anyway you want. For example, [compiling it through Vite](https://laravel.com/docs/9.x/vite#loading-your-scripts-and-styles) into your application global Javascript. +You will receive the `resources/js/vendor/webauthn/webauthn.js` file which you can include into your authentication views and use it programmatically, anyway you want. For example, [compiling it through Vite](https://laravel.com/docs/9.x/vite#loading-your-scripts-and-styles) into your application global JavaScript. ```html @@ -163,7 +163,7 @@ You will receive the `resources/js/vendor/webauthn/webauthn.js` file which you c ``` -Once done, you can easily start registering and login in users. For example, for a logged in user, you may show a registration view in HTML with the following code: +Once done, you can easily start registering and login in users. For example, for a logged-in user, you may show a registration view in HTML with the following code: ```html
@@ -603,7 +603,7 @@ If you think WebAuthn is critical for these packages, [consider supporting this * **Does this work with any browser?** -[Yes](https://caniuse.com/#feat=webauthn). In the case of old browsers, you should have a fallback detection script. This can be asked with [the included Javascript helper](#5-use-the-javascript-helper) in a breeze: +[Yes](https://caniuse.com/#feat=webauthn). In the case of old browsers, you should have a fallback detection script. This can be asked with [the included JavaScript helper](#5-use-the-javascript-helper) in a breeze: ```javascript if (WebAuthn.doesntSupportWebAuthn()) { @@ -655,7 +655,7 @@ Extremely secure since it works only on HTTPS (or `localhost`), no password or c [Yes](#password-fallback). Just be sure to create recovery helpers to avoid locking out your users. -* **Does this includes Javascript to handle WebAuthn in the frontend?** +* **Does this include JavaScript to handle WebAuthn in the frontend?** [Yes](#5-use-the-javascript-helper), but it's very _basic_. @@ -663,11 +663,11 @@ Extremely secure since it works only on HTTPS (or `localhost`), no password or c No, you still need to use [captcha](https://github.com/Laragear/ReCaptcha), honeypots, or other mechanisms to stop bots. -* **Does this encodes/decode the WebAuthn data automatically in the frontend?** +* **Does this encode/decode the WebAuthn data automatically in the frontend?** Yes, the included [WebAuthn Helper](#5-use-the-javascript-helper) does it automatically for you. -* **Does this encrypts the public keys?** +* **Does this encrypt the public keys?** Yes, public keys are encrypted when saved into the database.