Skip to content

Commit 8ec940b

Browse files
mmkalbalazsorban44
andauthored
docs: highlight archiving of next-auth/react-query (#4964)
* docs: highlight archiving of next-auth/react-query project is read-only and author said users should just copy-paste the implementation: nextauthjs/react-query#7 (comment) * Update docs/docs/getting-started/client.md Co-authored-by: Balázs Orbán <info@balazsorban.com> * Update docs/docs/getting-started/client.md Co-authored-by: Balázs Orbán <info@balazsorban.com> Co-authored-by: Balázs Orbán <info@balazsorban.com>
1 parent e3bcdf8 commit 8ec940b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docs/docs/getting-started/client.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,9 @@ Because of how `_app` is written, it won't unnecessarily contact the `/api/auth/
148148

149149
More information can be found in the following [GitHub Issue](https://github.com/nextauthjs/next-auth/issues/1210).
150150

151-
### NextAuth.js + React-Query
151+
### NextAuth.js + React Query
152152

153-
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).
154-
155-
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 `SessionProvider` from `next-auth/react`.
156-
157-
See repository [`README`](https://github.com/nextauthjs/react-query) for more details.
153+
You can create your own session management solution using data fetching libraries like [React Query](https://tanstack.com/query/v4/docs/adapters/react-query) or [SWR](https://swr.vercel.app). You can use the [original implementation of `@next-auth/react-query`](https://github.com/nextauthjs/react-query) and look at the [`next-auth/react` source code](https://github.com/nextauthjs/next-auth/blob/main/packages/next-auth/src/react/index.tsx) as a starting point.
158154

159155
---
160156

@@ -531,4 +527,4 @@ export default function App({
531527
</SessionProvider>
532528
)
533529
}
534-
```
530+
```

0 commit comments

Comments
 (0)