CoolAuth β a clean, production-ready authentication template for ASP.NET Core 9. Implements JWT access tokens, refresh tokens, magic links, session caching in Redis, and persistence in PostgreSQL. Perfect starting point for secure APIs and microservices.
- π ASP.NET Core 9 authentication boilerplate
- π Access & Refresh tokens with rotation support
- βοΈ Magic link passwordless login
- β‘ Redis for fast session lookup and alias keys
- π PostgreSQL for persistent user/session storage
- ποΈ Clean architecture with DTOs, AutoMapper, and service separation
- βοΈ .NET 9 SDK
- π PostgreSQL (β₯ 12)
- π΄ Redis (β₯ 6)
- π³ Docker (optional, recommended for local dev)
Clone repository:
git clone https://github.com/ArchEmperor/CoolAuth.git
cd CoolAuthCreate .env file and copy template from .env.example:
cp .env.example .envEdit .env with your Postgres, Redis, and JWT settings.