Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: highlight archiving of next-auth/react-query #4964

Merged
merged 3 commits into from Jul 21, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 2 additions & 6 deletions docs/docs/getting-started/client.md
Expand Up @@ -150,11 +150,7 @@ More information can be found in the following [GitHub Issue](https://github.com

### NextAuth.js + React-Query
mmkal marked this conversation as resolved.
Show resolved Hide resolved

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).

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`.

See repository [`README`](https://github.com/nextauthjs/react-query) for more details.
There was once 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). This project has been archived, but if 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. You can use the [original implementation from the `@next-auth/react-query` repo](https://github.com/nextauthjs/react-query/blob/4b985a79df43dc2be72da320677d6db068104aa1/package.json).
mmkal marked this conversation as resolved.
Show resolved Hide resolved

---

Expand Down Expand Up @@ -531,4 +527,4 @@ export default function App({
</SessionProvider>
)
}
```
```