auth-pages
CommunityBuild secure, flicker-free auth pages with ease.
Software Engineering#authentication#next.js#session#server-side#protected routes#frontend security#better auth
Authoratilladeniz
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a robust, server-side first approach to building authentication pages in Next.js, eliminating common UI flicker issues and ensuring a smooth user experience. It streamlines the implementation of secure login, registration, and protected routes, saving you from complex client-side session management.
Core Features & Use Cases
- Server-Side Session Handling: Implements flicker-free session checks for protected pages, improving perceived performance.
- Cross-Tab Synchronization: Ensures authentication state is consistent across multiple browser tabs using
broadcast-channel. - Auth Client for Actions: Guides on using client-safe functions (
signIn,signOut) only for user interactions, not session checks. - Use Case: When creating a new protected page like
/settings, use this skill to implement server-side session checks and ensure a flicker-free user experience by avoiding client-sideuseSession()and redirecting unauthenticated users instantly.
Quick Start
Describe the recommended pattern for creating a new protected page in Next.js using server-side session checks to prevent UI flicker and ensure immediate redirection for unauthenticated users.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: auth-pages Download link: https://github.com/atilladeniz/next-go-pg/archive/main.zip#auth-pages Please download this .zip file, extract it, and install it in the .claude/skills/ directory.