lucia

Implement server-side session authentication with Lucia Auth across frameworks.

4|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/mgd34msu/goodvibes-gemini --skill lucia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lucia
Source: https://github.com/mgd34msu/goodvibes-gemini/tree/main/skills/lucia
Command: npx skills add https://github.com/mgd34msu/goodvibes-gemini --skill lucia

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the implementation of secure, server-side session-based authentication, handling complex session management and cookie operations for user authentication flows.

Core Features & Use Cases

  • Session Management: Manages user sessions, including creation, validation, and invalidation.
  • Cookie Handling: Securely sets and reads session cookies, ensuring proper cookie attributes for security.
  • OAuth Integration: Facilitates integration with OAuth providers like GitHub for social logins.
  • Password Reset: Implements secure password reset flows with token generation and validation.
  • Use Case: When building a web application that requires users to log in, manage their sessions across requests, and potentially use social logins, this Skill provides the robust backend logic needed.

Quick Start

Use the lucia skill to set up basic session authentication with Prisma and Next.js.

Frequently Asked Questions about lucia

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement server-side session-based authentication in Next.js?

Server-side session-based authentication in Next.js is implemented using the Lucia Auth library to handle user registration, login, logout, and session validation across requests. It manages secure cookie handling and session creation securely.

Can I use Lucia Auth for OAuth integration with social logins?

Yes, Lucia Auth facilitates OAuth integration with providers like GitHub for social logins. It manages the underlying session creation and secure cookie operations required to authenticate users via third-party providers.

What's the best way to manage secure session cookies for web applications?

Managing secure session cookies is handled by setting and reading session cookies with proper security attributes using Lucia Auth. This ensures that server-side sessions are validated and invalidated securely across web application requests.

Does Lucia Auth work with both Express and Hono frameworks?

Yes, Lucia Auth works with Express and Hono, as well as Next.js. It provides the backend logic to implement server-side session management, user login flows, and OAuth integration across these various web frameworks.

How do I implement a secure password reset flow with token validation?

A secure password reset flow is implemented using Lucia Auth to handle token generation and validation. This manages the backend logic required to securely reset user passwords and update the associated server-side session credentials.