From 83f1aaf405abc327fb88f091a6158cdda539bad9 Mon Sep 17 00:00:00 2001 From: Manoel Lobo Date: Tue, 6 Nov 2018 08:49:07 -0300 Subject: [PATCH] Authentication tutorial - small fixes - Changed gatsbyjs.org links from absolute to relative - Fixed passportjs link - Changed sidebar link to show as available content (dark) --- docs/docs/authentication-tutorial.md | 8 ++++---- www/src/data/sidebars/doc-links.yaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/authentication-tutorial.md b/docs/docs/authentication-tutorial.md index a6082c5d0e897..127c48b07c3e6 100644 --- a/docs/docs/authentication-tutorial.md +++ b/docs/docs/authentication-tutorial.md @@ -2,15 +2,15 @@ title: Making a site with user authentication --- -Sometimes, you need to create a site with gated content, available only to authenticated users. Using Gatsby, you may achieve this using the concept of [client-only routes](https://www.gatsbyjs.org/docs/building-apps-with-gatsby/#client-only-routes), to define which pages a user can view only after logging in. +Sometimes, you need to create a site with gated content, available only to authenticated users. Using Gatsby, you may achieve this using the concept of [client-only routes](/docs/building-apps-with-gatsby/#client-only-routes), to define which pages a user can view only after logging in. ## Prerequisites -You should have already configured your environment to be able to use the `gatsby-cli`. A good starting point is the [main tutorial](https://www.gatsbyjs.org/tutorial/). +You should have already configured your environment to be able to use the `gatsby-cli`. A good starting point is the [main tutorial](/tutorial). ## Security notice -In production, you should use a tested and robust solution to handle the authentication. [Auth0](https://www.auth0.com), [Firebase](https://firebase.google.com), and [Passport.js](passportjs.org) are good examples. This tutorial will only cover the authentication workflow, but you should take the security of your app as seriously as possible. +In production, you should use a tested and robust solution to handle the authentication. [Auth0](https://www.auth0.com), [Firebase](https://firebase.google.com), and [Passport.js](http://passportjs.org) are good examples. This tutorial will only cover the authentication workflow, but you should take the security of your app as seriously as possible. ## Building your Gatsby app @@ -200,7 +200,7 @@ exports.onCreatePage = async ({ page, actions }) => { } ``` -> Note: There is a convenient plugin that already does this work for you: [gatsby-plugin-create-client-paths](https://www.gatsbyjs.org/packages/gatsby-plugin-create-client-paths/) +> Note: There is a convenient plugin that already does this work for you: [gatsby-plugin-create-client-paths](/packages/gatsby-plugin-create-client-paths) Now, you must create a generic page that will have the task to generate the restricted content: diff --git a/www/src/data/sidebars/doc-links.yaml b/www/src/data/sidebars/doc-links.yaml index 3addea751d50f..85fc45652e937 100644 --- a/www/src/data/sidebars/doc-links.yaml +++ b/www/src/data/sidebars/doc-links.yaml @@ -352,7 +352,7 @@ link: /docs/behind-the-scenes-terminology/ - title: Advanced Tutorials items: - - title: Making a site with user authentication* + - title: Making a site with user authentication link: /docs/authentication-tutorial/ - title: Making an e-commerce Gatsby site link: /docs/ecommerce-tutorial/