+ server components, and server actions
How to test: Login and refresh the page to see iron-session in action.
Loading...
How it works
- During login, the page uses a server action.
- During logout, the page uses a server action.
- When displaying session data, the server component gets the data and pass it to the page.