Lucia Auth Skill
CommunitySecure Next.js App Router auth with Lucia.
Authoraussiegingersnap
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Minimal, secure authentication for Next.js App Router using Oslo (crypto)/cookies, Arctic OAuth, and Drizzle ORM + SQLite, avoiding Auth.js/NextAuth bloat while enabling robust user sessions.
Core Features & Use Cases
- Minimal dependencies with strict TypeScript types and a DB-backed session model.
- OAuth with Arctic providers (Google and Apple) using PKCE and state verification.
- Session management via httpOnly cookies and hashed tokens stored in SQLite with Drizzle ORM.
- Use case: add login to a Next.js app and support sign-in, sign-out, session validation, and account linking across providers.
Quick Start
Start by wiring Google or Apple OAuth in your Next.js app and trigger the login flow to create a user session.
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: Lucia Auth Skill Download link: https://github.com/aussiegingersnap/cursor-skills/archive/main.zip#lucia-auth-skill Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.