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
+58Lines changed: 58 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,64 @@ const Posts = () => {
102
102
exportdefaultPosts;
103
103
```
104
104
105
+
## Use Auth0 outside of React
106
+
107
+
If you need to access the `Auth0Client` outside of the React tree — for example in middleware, axios interceptors, or TanStack Router loaders — use `createAuth0Client` to create a shared instance and pass it to `Auth0Provider` via the `client` prop.
108
+
109
+
Using `createAuth0Client` ensures the `auth0-react` telemetry header is set correctly on the client.
0 commit comments