技能 编程开发 Clerk认证工作流

Clerk认证工作流

v20260311
clerk-core-workflow-a
通过Clerk构建用户注册登录流程,涵盖邮箱、OAuth、定制表单与验证码,帮助项目快速交付灵活的认证与社交登录体验。
获取技能
471 次下载
概览

Clerk Core Workflow A: Sign-Up & Sign-In

Overview

Implement comprehensive user authentication flows including email, OAuth, and custom UI.

Prerequisites

  • Clerk SDK installed and configured
  • OAuth providers configured in Clerk dashboard (if using social login)
  • Sign-in/sign-up URLs configured in environment

Instructions

  1. Step 1: Pre-built Components (Quick Start)
  2. Step 2: Custom Sign-In Form
  3. Step 3: OAuth Social Login
  4. Step 4: Email Verification Flow

For full implementation details and code examples, load: Read(${CLAUDE_SKILL_DIR}/references/implementation-guide.md)

Output

  • Working sign-in/sign-up pages
  • OAuth social login configured
  • Email verification flow
  • Custom authentication UI

Error Handling

Error Cause Solution
form_identifier_not_found Email not registered Show sign-up prompt
form_password_incorrect Wrong password Show error, offer reset
session_exists Already signed in Redirect to dashboard
verification_failed Wrong code Allow retry, resend code

Resources

Next Steps

Proceed to clerk-core-workflow-b for session management and middleware.

Examples

Basic usage: Apply clerk core workflow a to a standard project setup with default configuration options.

Advanced scenario: Customize clerk core workflow a for production environments with multiple constraints and team-specific requirements.

信息
Category 编程开发
Name clerk-core-workflow-a
版本 v20260311
大小 3.13KB
更新时间 2026-03-12
语言