nextjs-authentication

Installation
SKILL.md

Quick Reference

Auth.js Export Purpose Usage
auth Get session (server) const session = await auth()
signIn Trigger sign in await signIn('github')
signOut Trigger sign out await signOut()
handlers API route handlers export const { GET, POST } = handlers
Session Access Location Code
Server Component Server const session = await auth()
Client Component Client const { data: session } = useSession()
Middleware Edge req.auth
Server Action Server const session = await auth()
Installs
74
GitHub Stars
59
First Seen
May 21, 2026