From 0c7f380f9364bf843de1f88b9e2ea51efb983b0f Mon Sep 17 00:00:00 2001 From: vincanger <70215737+vincanger@users.noreply.github.com> Date: Fri, 24 May 2024 09:10:42 +0200 Subject: [PATCH] add Dummy email sender info to guided tour --- .gitignore | 1 + app/.gitignore | 4 ---- blog/src/content/docs/start/guided-tour.md | 16 ++++++++++++++-- 3 files changed, 15 insertions(+), 6 deletions(-) delete mode 100644 app/.gitignore diff --git a/.gitignore b/.gitignore index c1177447..18b138de 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ */.wasp/ */.env.server */.env.client +*/node_modules */.DS_Store .DS_Store diff --git a/app/.gitignore b/app/.gitignore deleted file mode 100644 index 62dfbedf..00000000 --- a/app/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/.wasp/ -/.env.server -/.env.client -/node_modules diff --git a/blog/src/content/docs/start/guided-tour.md b/blog/src/content/docs/start/guided-tour.md index c87274db..b26702fd 100644 --- a/blog/src/content/docs/start/guided-tour.md +++ b/blog/src/content/docs/start/guided-tour.md @@ -156,9 +156,21 @@ By defining the auth structure in your `main.wasp` file, Wasp manages all the ne -We've set the template up with Wasp's `email`, `google`, and `gitHub`, methods, which are all battle-tested and suitable for production. +We've set the template up with Wasp's `email`, `google`, and `gitHub` methods, which are all battle-tested and suitable for production. -You'll notice that `google` and `gitHub` methods are pre-configured but commented out. If you'd like to use these configurations in your app, make sure to check out the [Authentication Guide](/guides/authentication) which gives you details on obtaining necessary API keys and integrations. +You can get started developing your app with the `email` method right away! Note that this method relies on an `emailSender` (configured at `app.emailSender` in the `main.wasp` file), a service which sends emails to verify users and reset passwords. For development purposes, Wasp provides a `Dummy` email sender, which does not actually send any confirmation emails to the specified email address, but instead logs all email verification links/tokens to the console! You can then follow these links to verify the user and continue with the sign-up process. + +```tsx title="main.wasp" + emailSender: { + provider: Dummy, // logs all email verification links/tokens to the server's console + defaultFrom: { + name: "Open SaaS App", + email: "me@example.com" + }, + }, +``` + +We will explain more about these auth methods, and how to properly integrate them into your app, in the [Authentication Guide](/guides/authentication). ### Subscription Payments with Stripe