gatsby-plugin-netlify-identity-gotrue
A simple Gatsby plugin for enabling a comprehensive and fully-featured Netlify Identity implementation into your Gatsby site. This plugin is a simplistic wrapper around react-netlify-identity-gotrue
. See that repository for the full API documentation available within Gatsby.
Install
npm i gatsby-plugin-netlify-identity-gotrue
yarn add gatsby-plugin-netlify-identity-gotrue
Then, in gatsby-config.js
, add an entry to plugins
:
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-netlify-identity-gotrue`,
options: {
url: `https://your-unique-site.netlify.app/`
}
}
]
}
❗PLEASE NOTE - This plugin will fail if Netlify Identity isn't enabled for your live Netlify site. Local development uses the same Netlify Identity instance as your live / 'prod' site.
Note ❗
This repository, the underlying react-netlify-identity-gotrue
repository, and the gatsby-plugin-netlify-identity-gotrue-demo
repository that consumes this one are not related to Netlify's netlify-identity-widget
stack or @sw-yx's react-netlify-identity
stack, both of which ultimately sit on gotrue-js
. This stack is written in pure React and interfaces with Netlify Identity directly without any dependencies. You can read some history about the three stacks here: https://jonsully.net/blog/announcing-react-netlify-identity-gotrue.