A simple API for user authentication using NestJS, PostgreSQL and JWT.
POST /auth/signup- Register a new userPOST /auth/signin- Authenticate user and return tokensPOST /auth/refresh- Generate a new access_token using a refresh_token
npm run start:dev- The app will be available at
http://localhost:3000. - The documentation will be available at
http://localhost:3000/api.
- Framework: NestJS
- Database: PostgreSQL
- ORM: Prisma
- JWT (Json Web Token)
- Password hashing using bcrypt and comparing using bcrypt
- Token refresh using jwt
- Swagger documentation
- Validation pipes - using class-validator