DFund is a full-stack crowdfunding platform using Next.js, Node.js, Express, and PostgreSQL. It features a secure authentication system with JSON Web Tokens (JWT) for email and password-based login, managing access and refresh tokens.
From the README
DFund – Secure Authentication Architecture Overview DFund is a full-stack crowdfunding platform built with Next.js, Node.js, Express, and PostgreSQL. The authentication system was designed to balance security, usability, and maintainability while supporting future scalability. Authentication Flow The application uses JSON Web Tokens (JWT) for authentication. 1. The user authenticates using email and password. 2. The server validates the credentials. 3. An access token and refresh token are generated. 4. The access token is stored in an HTTP-only cookie. 5. Protected API routes verify the access token before processing requests. 6. When the access token expires, the refresh token is...
Skills
- TypeScript
- JavaScript
- CSS