AgentSkillsCN

olore-lucia-latest

本地 Lucia 文档参考(最新版)。Lucia 身份验证文档。适用于基于会话的身份验证、OAuth 2.0 协议、密码哈希算法,以及各框架特有的身份验证实现。

SKILL.md
--- frontmatter
name: olore-lucia-latest
description: Local lucia documentation reference (latest). Lucia auth documentation. Use for session-based authentication, OAuth 2.0, password hashing, and framework-specific auth implementations.

lucia Documentation

Lucia auth documentation. Use for session-based authentication, OAuth 2.0, password hashing, and framework-specific auth implementations.

Quick Reference

FileTitleDescription
contents/index.mdLuciaOverview and introduction to authentication resources using JavaScript and TypeScript
contents/sessions/overview.mdSessionsIntroduction to sessions and stateful HTTP concepts
contents/sessions/basic.mdBasic session implementationComplete session implementation with ID/secret tokens, SHA-256 hashing, CSRF protection
contents/sessions/inactivity-timeout.mdInactivity timeoutImplementing inactivity timeout to keep active users signed in
contents/sessions/stateless-tokens.mdStateless tokensStateless token implementation with signed tokens
contents/sessions/frameworks/index.mdFramework implementationsOverview of framework-specific session implementations
contents/sessions/frameworks/nextjs.mdNext.js sessionsSession implementation for Next.js
contents/sessions/frameworks/sveltekit.mdSvelteKit sessionsSession implementation for SvelteKit
contents/rate-limit/token-bucket.mdToken bucketToken bucket rate limiting algorithm implementation
contents/tutorials/github-oauth/index.mdTutorial: GitHub OAuthGitHub OAuth tutorial overview
contents/tutorials/github-oauth/astro.mdGitHub OAuth (Astro)GitHub OAuth tutorial for Astro
contents/tutorials/github-oauth/nextjs.mdGitHub OAuth (Next.js)GitHub OAuth tutorial for Next.js
contents/tutorials/github-oauth/sveltekit.mdGitHub OAuth (SvelteKit)GitHub OAuth tutorial for SvelteKit
contents/tutorials/google-oauth/index.mdTutorial: Google OAuthGoogle OAuth tutorial overview
contents/tutorials/google-oauth/astro.mdGoogle OAuth (Astro)Google OAuth tutorial for Astro
contents/tutorials/google-oauth/nextjs.mdGoogle OAuth (Next.js)Google OAuth tutorial for Next.js
contents/tutorials/google-oauth/sveltekit.mdGoogle OAuth (SvelteKit)Google OAuth tutorial for SvelteKit
contents/examples/github-oauth.mdGitHub OAuth ExampleBasic example project with GitHub OAuth and rate limiting
contents/examples/google-oauth.mdGoogle OAuth ExampleBasic example project with Google OAuth
contents/examples/email-password-2fa.mdEmail/Password 2FA ExampleExample with email/password, TOTP 2FA, email verification, password reset
contents/examples/email-password-2fa-webauthn.mdEmail/Password WebAuthn ExampleExample with email/password and WebAuthn 2FA
contents/lucia-v3/migrate.mdMigrate from Lucia v3Migration guide from Lucia v3

When to use

Use this skill when the user asks about:

  • Session management and authentication
  • OAuth 2.0 implementation (GitHub, Google)
  • Password hashing and secure token generation
  • CSRF protection and security best practices
  • Framework-specific authentication (Next.js, SvelteKit, Astro)
  • Two-factor authentication (TOTP, WebAuthn)
  • Rate limiting and login throttling
  • Email verification and password reset flows

How to find information

  1. Check Quick Reference above for the relevant file
  2. Read specific files from contents/{filename}