Skip to content

magiclabs/gatsby-magic-starter

Repository files navigation

Gatsby Magic Starter for passwordless authentication

This gatsby auth starter implements a passwordless authentication using email magic link provided by Magic.

🚀 Quick start

  1. 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
  2. Get Magic's PUBLISHABLE KEY

    Sign up with Magic for free and get your GATSBY_MAGIC_PUBLISHABLE_API_KEY Magic Dashboard

    cp .env.example .env.development

    .env.development

    GATSBY_MAGIC_PUBLISHABLE_API_KEY=pk_live_********
    
  3. Start developing.

    Navigate into your new site’s directory and start it up.

    cd my-gatsby-magic-starter/
    gatsby develop
  4. 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 edit src/pages/index.js. Save your changes and the browser will update in real time!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published