FlashPrompt

Full-Stack Feature Implementation (Cursor/Copilot)🔥 HOT

Prompt

Act as an expert full-stack developer. I need to implement a user authentication flow. Provide the database schema, the API route for registration, and the frontend component with form validation. Ensure the code is secure, strongly typed, and follows current industry best practices.

✨ Like this?
Result

Here is a complete implementation...

model User {
  id        String   @id @default(cuid())
  email     String   @unique
  password  String
  createdAt DateTime @default(now())
}

Next, let's create the API route...