mirror of
https://github.com/leonvanzyl/agentic-coding-starter-kit.git
synced 2026-01-30 14:32:01 +00:00
Replace Google OAuth provider with email/password authentication to reduce friction for MVP development and vibe coding workflows. Changes: - Remove Google OAuth configuration from auth.ts - Add emailAndPassword provider with enabled: true - Add email verification with sendOnSignUp: true - Add password reset functionality - Log verification and reset URLs to terminal (no email integration yet) New auth pages (src/app/(auth)/): - /login - Sign in page - /register - Sign up page - /forgot-password - Password reset request - /reset-password - Password reset completion New components (src/components/auth/): - sign-up-form.tsx - Registration form - forgot-password-form.tsx - Password reset request form - reset-password-form.tsx - Password reset form Updated components: - sign-in-button.tsx - Now email/password form instead of Google button - user-profile.tsx - Shows Sign in/Sign up buttons when logged out Bug fixes: - Fix React render error in profile page by wrapping router.push in useEffect Config updates: - Remove GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET from env.example - Update CLAUDE.md documentation to reflect email/password auth - Add requestPasswordReset, resetPassword, sendVerificationEmail to auth-client exports All changes applied to both main project and create-agentic-app template. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
919 B
Plaintext
26 lines
919 B
Plaintext
# Database
|
|
POSTGRES_URL=postgresql://dev_user:dev_password@localhost:5432/postgres_dev
|
|
|
|
# Authentication - Better Auth
|
|
# Generate key using https://www.better-auth.com/docs/installation
|
|
BETTER_AUTH_SECRET=qtD4Ssa0t5jY7ewALgai97sKhAtn7Ysc
|
|
|
|
# AI Integration via OpenRouter (Optional - for chat functionality)
|
|
# Get your API key from: https://openrouter.ai/settings/keys
|
|
# View available models at: https://openrouter.ai/models
|
|
OPENROUTER_API_KEY=
|
|
OPENROUTER_MODEL="openai/gpt-5-mini"
|
|
|
|
# Optional - for vector search only
|
|
OPENAI_EMBEDDING_MODEL="text-embedding-3-large"
|
|
|
|
# App URL (for production deployments)
|
|
NEXT_PUBLIC_APP_URL="http://localhost:3000"
|
|
|
|
# File storage (optional - if app required file uploads)
|
|
BLOB_READ_WRITE_TOKEN=
|
|
|
|
# Polar payment processing
|
|
# Get these from: https://sandbox.polar.sh/dashboard (sandbox) or https://polar.sh/dashboard (production)
|
|
POLAR_WEBHOOK_SECRET=polar_
|
|
POLAR_ACCESS_TOKEN=polar_ |