Secure AuthenticationMade Simple

A production-ready authentication system built with Next.js, featuring email/Google login, OTP verification, activity tracking, and comprehensive security measures.

Everything You Need for Authentication

Built with modern technologies and security best practices

Secure Authentication

Email/password and Google OAuth with built-in brute force protection

OTP Verification

Email-based OTP verification for signup and password recovery

Activity Tracking

Users can view their own login history and account activity

Automated Cleanup

Cron jobs automatically delete expired tokens and unused data

Authentication Features

Email & Password Signup/Signin
Google OAuth Integration
OTP-based Email Verification
Password Reset with Email
Brute Force Protection

Advanced Features

Personal Activity Dashboard
Automated Token Cleanup
Cron Job Data Management
User Profile Management
TypeScript + Drizzle ORM

Built with Modern Technologies

Next.jsNextAuth.jsTypeScriptTailwind CSSDrizzle ORMNeon DBResendZod

Database Architecture

Clean, normalized schema with proper relationships

users

User profiles with account status

accounts

OAuth provider connections

verification_tokens

OTP tokens (auto-cleaned)

activity_logs

Personal activity history

Ready to Get Started?

Clone the repository and have a secure authentication system running in minutes