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: www/docs/getting-started/client.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -467,7 +467,7 @@ More information can be found in the following [Github Issue](https://github.com
467
467
468
468
### NextAuth.js + React-Query
469
469
470
-
There is also an alternative client-side API library based upon [`react-query`](https://www.npmjs.com/package/react-query) available under [`nextauthjs/react-query`](https://github.com/nextauthjs/react-query).
470
+
There is also an alternative first-party client-side API library based upon [`react-query`](https://www.npmjs.com/package/react-query) available under [`nextauthjs/react-query`](https://github.com/nextauthjs/react-query).
471
471
472
472
If you use `react-query` in your project already, you can leverage it with NextAuth.js to handle the client-side session management for you as well. This replaces NextAuth.js's native `useSession` and `Provider` from `next-auth/client`.
Copy file name to clipboardExpand all lines: www/docs/getting-started/example.md
+25-19Lines changed: 25 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,20 +13,20 @@ The easiest way to get started is to clone the [example app](https://github.com/
13
13
14
14
### Add API route
15
15
16
-
To add NextAuth.js to a project create a file called `[...nextauth].js` in `pages/api/auth`.
16
+
To add NextAuth.js to a project create a file called `[...nextauth].js` in `pages/api/auth`. NextAuth.js requires no modification to the `next.config.js` file.
17
17
18
18
[Read more about how to add authentication providers.](/configuration/providers)
@@ -74,9 +80,9 @@ You can use the `useSession` hook from anywhere in your application (e.g. in a h
74
80
To allow session state to be shared between pages - which improves performance, reduces network traffic and avoids component state changes while rendering - you can use the NextAuth.js Provider in `pages/_app.js`.
0 commit comments