You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14
Original file line number
Diff line number
Diff line change
@@ -182,6 +182,20 @@ function Dashboard() {
182
182
183
183
</details>
184
184
185
+
## Lower level API: `useNetlifyIdentity`
186
+
187
+
If you'd like to handle your own context yourself, you can use this library as a hook as well:
188
+
189
+
```tsx
190
+
function useNetlifyIdentity(
191
+
url:string,
192
+
onAuthChange:authChangeParam= () => {},
193
+
enableRunRoutes:boolean=true
194
+
):ReactNetlifyIdentityAPI;
195
+
```
196
+
197
+
the library watches for and handles confirmation routes by default. If you don't like this, pass `enableRunRoutes: false`. This was added here https://github.com/sw-yx/react-netlify-identity/issues/12 in v0.1.8
0 commit comments