Adapt the Auth UI Boilerplate for your application
The boilerplate includes demo components and documentation to help you understand how everything works. Once you’re ready to build your app, strip the demo content and customize the foundation.
After cloning, give this prompt to your AI assistant to remove demo components and create a clean starting point:
I cloned the auth-ui-boilerplate. Strip all demo/boilerplate UI and turn this into a clean starting point for my app. Specifically:1. Remove demo components: - Delete src/components/auth-status.tsx (auth status card) - Delete src/components/api-test.tsx and src/components/api-test-axios.tsx (API test cards)2. Replace the homepage (src/app/page.tsx): - Remove all demo content (How It Works, Backend Integration guide, Security Best Practices, Environment Variables, Project Structure, Credits sections) - Keep the nav bar with the app name and theme toggle (remove the Lock icon and GitHub link) - Remove all links from the footer (and remove the footer container as well) - Wrap the page with the LoginRequired component from src/components/login-required.tsx so unauthenticated users are redirected to /login - Add a simple welcome/dashboard layout that shows the authenticated user's name and a sign-out button (use authClient.useSession() from @/lib/auth-client) - Make Sign Out button part of Navbar instead of the page content.3. Remove the Back button from Login & Signup pages: - Remove the "Back" link and ArrowLeft icon from src/app/login/page.tsx - Remove the "Back" link and ArrowLeft icon from src/app/signup/page.tsx4. Keep these files as-is (core infrastructure): - src/lib/auth.ts and src/lib/auth-client.ts (Better Auth config) - src/lib/api-client.ts and src/lib/api-client-axios.ts (API clients with JWT injection) - src/app/api/auth/[...all]/route.ts (auth API handler) - src/app/api/[...path]/route.ts (JWT-injecting API proxy) - src/app/login/page.tsx and src/app/signup/page.tsx (auth pages — except the Back button removal above) - src/db/ (Drizzle schema and migrations) - src/components/ui/ (shadcn/ui primitives) - src/components/theme-provider.tsx and src/components/theme-toggle.tsx - src/components/fade-in.tsx - src/components/login-required.tsx5. Update the app name: - Ask me what my app name is before making any changes - Then replace "Auth UI Boilerplate" with my app name in the nav, footer, and src/app/layout.tsx metadata6. Clean up unused imports after removing components.The result should compile with npm run build and show a minimal authenticated dashboard.
Copy this entire prompt and paste it into your AI assistant. It will ask for your app name and handle all the cleanup automatically.