Skip to content

Commit 475a697

Browse files
author
sw-yx
committed
merge
2 parents b396562 + ece08ed commit 475a697

33 files changed

+9297
-1281
lines changed

CHANGELOG.md

Lines changed: 397 additions & 3 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
A component used to authenticate with Netlify's Identity service.
44
[Live demo](https://identity.netlify.com)
55

6-
For a lower level library to the underlying [GoTrue](https://github.com/netlify/gotrue) API, see
7-
[gotrue-js](https://github.com/netlify/gotrue-js).
8-
96
For usage example with React and React Router, please see our `/example` folder and [read the README](https://github.com/netlify/netlify-identity-widget/tree/master/example).
107

118
## What is Netlify Identity
@@ -131,6 +128,7 @@ module API. Options include:
131128
{
132129
container: '#some-query-selector'; // container to attach to
133130
APIUrl: 'https://www.example.com/.netlify/functions/identity'; // Absolute url to endpoint. ONLY USE IN SPECIAL CASES!
131+
namePlaceholder: 'some-placeholder-for-Name'; // custom placeholder for name input form
134132
}
135133
```
136134

@@ -157,8 +155,23 @@ https://olddvdscreensaver.com
157155

158156
![](devmode.png)
159157

158+
159+
## List of Alternatives
160+
161+
**Lowest level JS Library**: If you want to use the official Javascript bindings to GoTrue, Netlify's underlying Identity service written in Go, use https://github.com/netlify/gotrue-js
162+
163+
**React bindings**: If you want a thin wrapper over Gotrue-js for React, `react-netlify-identity` is a "headless" library, meaning there is no UI exported and you will write your own UI to work with the authentication. https://github.com/sw-yx/react-netlify-identity
164+
165+
**High level overlay**: If you want a "widget" overlay that gives you a nice UI out of the box, with a somewhat larger bundle, check https://github.com/netlify/netlify-identity-widget
166+
167+
**High level popup**: If you want a popup window approach also with a nice UI out of the box, and don't mind the popup flow, check https://github.com/netlify/netlify-auth-providers
168+
169+
You can also see an example of wrapping netlify-identity-widget in a React Hook here: https://github.com/sw-yx/netlify-fauna-todo/blob/master/src/hooks/useNetlifyIdentity.js
170+
160171
## FAQ
161172

173+
* Typescript Typings are maintained by @nkprince007 ([see PR](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/30689)): `npm install @types/netlify-identity-widget` and then `import * as NetlifyIdentityWidget from "netlify-identity-widget"` (or `import NetlifyIdentityWidget from "netlify-identity-widget"` if you have `--allowSyntheticDefaultImports` on)
174+
162175
* If you experience a 404 while testing the Netlify Identity Widget on a local
163176
environment, you can manually remove the netlifySiteURL from localStorage by
164177
doing the following in the console.

RELEASE.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# Release Checklist
22

3+
Make sure you have npm + git credentials set up.
4+
35
- [ ] Make changes and/or merge PRs.
4-
- [ ] Document changes in a gh-release draft. If no draft exists, create one.
56
- [ ] `git checkout master`
67
- [ ] `git pull`
78
- [ ] `npm version [ major | minor | patch ]`
8-
- [ ] `git push && git push --tags`
9-
- [ ] Assign draft gh-release to new tag and publish release notes and double check everything looks right.
10-
- [ ] `npm publish`
9+
- [ ] `npm run publish`

example/.netlify/state.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"siteId": "581ed9db-5771-4757-9561-9b68ed34992e"
3+
}
File renamed without changes.

example/README.md renamed to example/react/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@ The source code is at https://github.com/netlify/netlify-identity-widget/tree/ma
77
and it is deployed at: https://netlify-identity-widget-react-example.netlify.com
88

99
For more info on the `netlify-identity-widget`, [find the repo here.](https://github.com/netlify/netlify-identity-widget/)
10+
11+
12+
---
13+
14+
Note: if you are developing with netlify-identity-widget locally you will be prompted for a deployed Netlify Identity site (as we mention in [the Localhost section of the main README](https://github.com/netlify/netlify-identity-widget#localhost)). Sometimes this causes issues with email verification or confirmation and you may need to reset the site. to clear the locally stored Netlify Identity site you previously entered, execute `localStorage.removeItem('netlifySiteURL');` in your window.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)