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
* chore: upgrade packages
* drop unused imports
* feat: expose custom `fetch` option
* properly forward user option, add corporate proxy guide
* add to sidebar
* expose `customFetch` symbol from `next-auth`
* expose `customFetch` from other frameworks too
Auth.js libraries like NextAuth.js use the `fetch` API to communicate with OAuth providers. If your organization uses a corporate proxy, you may need to configure the `fetch` API to use the proxy.
6
+
7
+
## Using a custom fetch function
8
+
9
+
You can provide a custom `fetch` function to NextAuth.js by passing it as an option to the provider. This allows you to configure the `fetch` function to use a proxy.
10
+
11
+
Here, we use the `undici` library to make requests through a proxy server. We create a custom `fetch` function that uses `undici` and the `ProxyAgent` library to make requests through the proxy server.
0 commit comments