From 6eb68441cae5e2c5faa43b30dd7b23e1b849b809 Mon Sep 17 00:00:00 2001 From: Jake Zhao Date: Tue, 20 Sep 2022 18:30:46 -0400 Subject: [PATCH 1/3] Tell user to say no when asked to enable WebAuth --- docs/docs/tutorial/chapter4/authentication.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/tutorial/chapter4/authentication.md b/docs/docs/tutorial/chapter4/authentication.md index 4cafac1989b6..7e272e3d8871 100644 --- a/docs/docs/tutorial/chapter4/authentication.md +++ b/docs/docs/tutorial/chapter4/authentication.md @@ -131,7 +131,7 @@ Run this setup command to get the internals of dbAuth added to our app: yarn rw setup auth dbAuth ``` -When asked if you want to override the existing file `/api/src/lib/auth.{js,ts}` say yes. The shell `auth.{js,ts}` that's created in a new app makes sure things like the `@requireAuth` directive work, but now we'll replace it with a real implementation. +When asked if you want to override the existing file `/api/src/lib/auth.{js,ts}` say yes. The shell `auth.{js,ts}` that's created in a new app makes sure things like the `@requireAuth` directive work, but now we'll replace it with a real implementation. Say no when asked to Enable WebAuthn support. You'll see that the process creates several files and includes some post-install instructions for the last couple of customizations you'll need to make. Let's go through them now. @@ -474,7 +474,7 @@ Yet another generator is here for you, this time one that will create pages for yarn rw g dbAuth ``` -Again several pages will be created and some post-install instructions will describe next steps. But for now, try going to [http://localhost:8910/login](http://localhost:8910/login): +Say no when asked to Enable WebAuthn support. Again several pages will be created and some post-install instructions will describe next steps. But for now, try going to [http://localhost:8910/login](http://localhost:8910/login): ![Generated login page](https://user-images.githubusercontent.com/300/146464693-a8fc4cf9-7fed-474f-8335-bb4c80fe0a5e.png) From 865cc954f394f0ba527ad42f0d1d83ff899e64a5 Mon Sep 17 00:00:00 2001 From: Jake Zhao Date: Thu, 22 Sep 2022 13:11:07 -0400 Subject: [PATCH 2/3] Provide more info about WebAuthn Addressing pr comments --- docs/docs/tutorial/chapter4/authentication.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/tutorial/chapter4/authentication.md b/docs/docs/tutorial/chapter4/authentication.md index 7e272e3d8871..6bf05d22a145 100644 --- a/docs/docs/tutorial/chapter4/authentication.md +++ b/docs/docs/tutorial/chapter4/authentication.md @@ -131,7 +131,7 @@ Run this setup command to get the internals of dbAuth added to our app: yarn rw setup auth dbAuth ``` -When asked if you want to override the existing file `/api/src/lib/auth.{js,ts}` say yes. The shell `auth.{js,ts}` that's created in a new app makes sure things like the `@requireAuth` directive work, but now we'll replace it with a real implementation. Say no when asked to Enable WebAuthn support. +When asked if you want to override the existing file `/api/src/lib/auth.{js,ts}` say yes. The shell `auth.{js,ts}` that's created in a new app makes sure things like the `@requireAuth` directive work, but now we'll replace it with a real implementation. When prompted to "Enable WebAuthn support", pick no - this is a separate piece of functionality we won't need for the tutorial. You'll see that the process creates several files and includes some post-install instructions for the last couple of customizations you'll need to make. Let's go through them now. @@ -474,7 +474,7 @@ Yet another generator is here for you, this time one that will create pages for yarn rw g dbAuth ``` -Say no when asked to Enable WebAuthn support. Again several pages will be created and some post-install instructions will describe next steps. But for now, try going to [http://localhost:8910/login](http://localhost:8910/login): +Again several pages will be created and some post-install instructions will describe next steps. But for now, try going to [http://localhost:8910/login](http://localhost:8910/login): ![Generated login page](https://user-images.githubusercontent.com/300/146464693-a8fc4cf9-7fed-474f-8335-bb4c80fe0a5e.png) From 0e0f4278da97ac63ba9059f0c65dc5820f331551 Mon Sep 17 00:00:00 2001 From: Jake Zhao Date: Thu, 22 Sep 2022 13:17:12 -0400 Subject: [PATCH 3/3] Update versioned docs with WebAuthn instructions Addressing pr comments --- .../version-3.0/tutorial/chapter4/authentication.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/versioned_docs/version-3.0/tutorial/chapter4/authentication.md b/docs/versioned_docs/version-3.0/tutorial/chapter4/authentication.md index 4cafac1989b6..6bf05d22a145 100644 --- a/docs/versioned_docs/version-3.0/tutorial/chapter4/authentication.md +++ b/docs/versioned_docs/version-3.0/tutorial/chapter4/authentication.md @@ -131,7 +131,7 @@ Run this setup command to get the internals of dbAuth added to our app: yarn rw setup auth dbAuth ``` -When asked if you want to override the existing file `/api/src/lib/auth.{js,ts}` say yes. The shell `auth.{js,ts}` that's created in a new app makes sure things like the `@requireAuth` directive work, but now we'll replace it with a real implementation. +When asked if you want to override the existing file `/api/src/lib/auth.{js,ts}` say yes. The shell `auth.{js,ts}` that's created in a new app makes sure things like the `@requireAuth` directive work, but now we'll replace it with a real implementation. When prompted to "Enable WebAuthn support", pick no - this is a separate piece of functionality we won't need for the tutorial. You'll see that the process creates several files and includes some post-install instructions for the last couple of customizations you'll need to make. Let's go through them now.