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: EXAMPLES.md
-2
Original file line number
Diff line number
Diff line change
@@ -96,8 +96,6 @@ const Posts = () => {
96
96
exportdefaultPosts;
97
97
```
98
98
99
-
For a more detailed example see how to [create a `useApi` hook for accessing protected APIs with an access token](#create-a-useapi-hook-for-accessing-protected-apis-with-an-access-token).
100
-
101
99
## Protecting a route in a `react-router-dom v6` app
102
100
103
101
We need to access the `useNavigate` hook so we can use `navigate` in `onRedirectCallback` to return us to our `returnUrl`.
0 commit comments