Skip to content

Commit

Permalink
Update withUser to useUser in README.md of the example with-iron-session
Browse files Browse the repository at this point in the history
  • Loading branch information
mjr authored Jan 3, 2021
1 parent 9ff3785 commit 9c85523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/with-iron-session/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
- [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
- Session data is signed and encrypted in a cookie

Expand Down

0 comments on commit 9c85523

Please sign in to comment.