Skip to main content

user-authentication-system

Complete authentication with OAuth, session management, and security

来源信息

仓库
abcnuts/manus-skills
最近来源活动
2026年2月12日 04:11
检测到的 SKILL.md 语言
英语
星标
70
分支
45

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
4 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
user-authentication-system
description
Complete authentication with OAuth, session management, and security
# User Authentication System Skill Automate setup of complete authentication systems with OAuth, session management, and security best practices. ## Purpose Quickly add production-ready authentication to web applications with support for multiple providers (Clerk, Supabase, Auth0, NextAuth). ## When to Use - Adding auth to a new application - Switching auth providers - Implementing OAuth (Google, GitHub, etc.) - Setting up role-based access control - Migrating from custom auth ## Quick Start ```bash python3 /home/ubuntu/skills/user-authentication-system/scripts/setup_auth.py \ /path/to/project \ clerk \ pk_test_your_key ``` ## Supported Providers - **Clerk** - Fastest setup (10 min) - **Supabase** - Open source, free tier - **Auth0** - Enterprise-grade - **NextAuth** - Full control, customizable ## What It Does 1. Detects framework (Next.js, React, Express, Flask) 2. Installs auth dependencies 3. Creates configuration files 4. Generates auth provider components 5. Provides sign-in/sign-up templates ## Protected Routes Example ```typescript import { auth } from '@clerk/nextjs' export default async function Dashboard() { const { userId } = auth() if (!userId) redirect('/sign-in') return <div>Protected content</div> } ``` ## Time Savings **Manual**: 2-3 hours **With Skill**: 15-20 minutes **Saved**: ~2 hours per project ## Files - `scripts/setup_auth.py` - Automated setup (200 lines) - `templates/signin.tsx` - Sign-in component - `references/auth_patterns.md` - Comprehensive guide (200+ lines) ## Related Skills - `deployment-automation` - Deploy with auth configured - `database-schema-generator` - Create users/sessions tables - `analytics-dashboard` - Track auth events *Production-ready authentication in minutes.*
在 GitHub 查看