This website showcase different ways to use the iron-session library.
Note: We've added delay to simulate database requests at login.
Main Examples:
- App router + client components, route handlers, and SWR 🤩
- Pages Router + API routes, getServerSideProps, and SWR 🤩
☝️ These two examples are the most advanced and the ones we recommend for now.
Other Examples:
- App router + server components, and server actions
- App router + client components, route handlers, redirects, and fetch
- Pages Router + API routes, redirects, and fetch
- Magic links
- OAuth login example (SWR) (Help needed)
- Pages Router (and App Router?) req.session wrappers (Help needed)