Skip to content
Branch: master
Find file History
Ehesp and DSchau Fix gatsby-plugin-react-helmet for v6.0.0 (#10578)
## Description

In version 6.0.0 of react-helmet, the default export has been removed. There is now only a named export, e.g.

```
import { Helmet } from 'react-helmet';
```

In v5.x.x, both a default export and named are exported. Change is here:

nfl/react-helmet@20ea385#diff-cc54072daf5278847980b841520c8fffL287

This is a backwards compatible change. v5 has an annoying bug (nfl/react-helmet#373) which v6 seems to fix.
Latest commit 99b57c1 Dec 20, 2018

README.md

Gatsby Authentication Demo

This is a simplified demo to show how an authentication workflow is implemented in Gatsby.

The short version is:

  • Gatsby statically renders all unauthenticated routes as usual
  • Authenticated routes are whitelisted as client-only
  • Logged out users are redirected to the login page if they attempt to visit private routes
  • Logged in users will see their private content

A Note About Security

This example is less about creating an example of secure, production-ready authentication, and more about showing Gatsby's ability to support dynamic content in client-only routes.

For production-ready authentication solutions, take a look at Auth0 or Passport.js. Rolling a custom auth system is hard and likely to have security holes. Auth0 and Passport.js are both battle tested and widely used.

You can’t perform that action at this time.