Unverified Commit 2e8259ff authored by Manaia Junior's avatar Manaia Junior Committed by GitHub

Update withUser to useUser in README.md of the example with-iron-session (#20723)

parent 2a4887c3
...@@ -8,7 +8,7 @@ It uses current best practices for authentication in the Next.js ecosystem. ...@@ -8,7 +8,7 @@ It uses current best practices for authentication in the Next.js ecosystem.
- [Static Generation](https://nextjs.org/docs/basic-features/pages#static-generation-recommended) (SG), recommended example - [Static Generation](https://nextjs.org/docs/basic-features/pages#static-generation-recommended) (SG), recommended example
- [Server-side Rendering](https://nextjs.org/docs/basic-features/pages#server-side-rendering) (SSR) example in case you need it - [Server-side Rendering](https://nextjs.org/docs/basic-features/pages#server-side-rendering) (SSR) example in case you need it
- Logged in status synchronized between browser windows/tabs using **`withUser`** hook and [`swr`](https://swr.now.sh/) module - Logged in status synchronized between browser windows/tabs using **`useUser`** hook and [`swr`](https://swr.now.sh/) module
- Layout based on the user's logged-in/out status - Layout based on the user's logged-in/out status
- Session data is signed and encrypted in a cookie - Session data is signed and encrypted in a cookie
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment