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