@@ -53,7 +53,7 @@ The widget will automatically attach itself to the window object as
53
53
You can use this global object like this:
54
54
55
55
``` js
56
- // open the modal
56
+ // Open the modal
57
57
netlifyIdentity .open ();
58
58
59
59
// Get the current user:
@@ -70,7 +70,7 @@ netlifyIdentity.on("close", () => console.log("Widget closed"));
70
70
// Close the modal
71
71
netlifyIdentity .close ();
72
72
73
- // Logout the user
73
+ // Log out the user
74
74
netlifyIdentity .logout ();
75
75
```
76
76
@@ -82,7 +82,7 @@ and will only reflect breaking changes in the markup API.
82
82
### Module API
83
83
84
84
Netlify Identity Widget also has a
85
- [ module api ] ( https://www.npmjs.com/package/netlify-identity-widget ) :
85
+ [ module API ] ( https://www.npmjs.com/package/netlify-identity-widget ) :
86
86
87
87
```
88
88
yarn add netlify-identity-widget
@@ -111,19 +111,19 @@ netlifyIdentity.on("close", () => console.log("Widget closed"));
111
111
// Close the modal
112
112
netlifyIdentity .close ();
113
113
114
- // Logout the user
114
+ // Log out the user
115
115
netlifyIdentity .logout ();
116
116
117
- // Access the underlying gotrue instance .
118
- // Note that doing things directly through gotrue brings a risk of getting out of
119
- // sync between your state and the widgets state.
117
+ // Access the underlying GoTrue JS client .
118
+ // Note that doing things directly through the GoTrue client brings a risk of getting out of
119
+ // sync between your state and the widget’s state.
120
120
netlifyIdentity .gotrue ;
121
121
```
122
122
123
123
#### ` netlifyIdentity.init([opts]) `
124
124
125
125
You can pass an optional ` opts ` object to configure the widget when using the
126
- module api . Options include:
126
+ module API . Options include:
127
127
128
128
``` js
129
129
{
0 commit comments