GuidesBasicsVersion: v4On this pageBasicsSecuring pages and API routes​How to restrict access to pages and API routes.Usage with class components​How to use useSession() hook with class components.