Community Plugin
View plugin on GitHubGatsby Magic Starter for passwordless authentication
This gatsby auth starter implements a passwordless authentication using email magic link provided by Magic.
🚀 Quick start
-
Create a Gatsby site.
Use the Gatsby CLI to create a new site, specifying the gatsby-magic-starter for passwordless authentication.
# create a new Gatsby site using the gatsby-magic-starter gatsby new my-gatsby-magic-starter https://github.com/magiclabs/gatsby-magic-starter
-
Get Magic’s PUBLISHABLE KEY
Sign up with Magic for free and get your
GATSBY_MAGIC_PUBLISHABLE_API_KEY
cp .env.example .env.development
.env.development
GATSBY_MAGIC_PUBLISHABLE_API_KEY=pk_live_********
-
Start developing.
Navigate into your new site’s directory and start it up.
cd my-gatsby-magic-starter/ gatsby develop
-
Open the source code and start editing!
Your site is now running at
http://localhost:8000
!Open the
my-gatsby-magic-starter
directory in your code editor of choice and editsrc/pages/index.js
. Save your changes and the browser will update in real time!