Skip to content

Commit 2d8acda

Browse files
committed
docs: update readme
1 parent eadb771 commit 2d8acda

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ netlifyIdentity.close();
7171

7272
// Log out the user
7373
netlifyIdentity.logout();
74-
// refresh the user's JWT
74+
// refresh the user's JWT
7575
// Note: this method returns a promise.
7676
netlifyIdentity.refresh().then((jwt)=>console.log(jwt))
7777

@@ -89,7 +89,7 @@ and will only reflect breaking changes in the markup API.
8989
Netlify Identity Widget also has a
9090
[module API](https://www.npmjs.com/package/netlify-identity-widget):
9191

92-
```
92+
```bash
9393
yarn add netlify-identity-widget
9494
```
9595

@@ -100,6 +100,7 @@ const netlifyIdentity = require('netlify-identity-widget');
100100

101101
netlifyIdentity.init({
102102
container: '#netlify-modal' // defaults to document.body,
103+
locale: 'en' // defaults to 'en'
103104
});
104105

105106
netlifyIdentity.open(); // open the modal
@@ -119,7 +120,7 @@ netlifyIdentity.close();
119120
// Log out the user
120121
netlifyIdentity.logout();
121122

122-
// refresh the user's JWT
123+
// refresh the user's JWT
123124
// Note: this method returns a promise.
124125
netlifyIdentity.refresh().then((jwt)=>console.log(jwt))
125126

@@ -169,7 +170,6 @@ https://olddvdscreensaver.com
169170

170171
![](devmode.png)
171172

172-
173173
## List of Alternatives
174174

175175
**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

0 commit comments

Comments
 (0)