clerk-local-dev-loop

Featured

Set up local development workflow with Clerk. Use when configuring development environment, testing auth locally, or setting up hot reload with Clerk. Trigger with phrases like "clerk local dev", "clerk development", "test clerk locally", "clerk dev environment".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Clerk Local Dev Loop ## Overview Configure an efficient local development workflow with Clerk authentication, including test users, hot reload, and mock auth for unit tests. ## Prerequisites - Clerk SDK installed (`clerk-install-auth` completed) - Development instance created in Clerk Dashboard - Node.js development environment ## Instructions ### Step 1: Configure Development Instance Create a separate Clerk development instance to isolate test data from production. ```bash # .env.local — use test keys (pk_test_ / sk_test_) NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_test_... CLERK_SECRET_KEY=sk_test_... # Optional: Enable Clerk debug logging CLERK_DEBUG=true ``` Clerk development instances provide: - No email verification required - Test phone numbers accepted - Relaxed rate limits - OAuth with test credentials ### Step 2: Set Up Test Users ```typescript // scripts/seed-test-users.ts import { createClerkClient } from '@clerk/backend' const clerk = createClerkClient({ secretKey: process.env.CLERK_SECRET_KEY! }) async function seedTestUsers() { const users = [ { emailAddress: ['admin@test.com'], password: 'test1234', firstName: 'Admin', lastName: 'User' }, { emailAddress: ['member@test.com'], password: 'test1234', firstName: 'Member', lastName: 'User' }, ] for (const user of users) { try { await clerk.users.createUser(user) console.log(`Created: ${user.emailAddress[0]}`) } catch (err: any) { if (err.status === 422) { conso...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category