Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
4fce0f0
Update @mate-academy/scripts to v2.1.3
mpodaniev Jun 6, 2026
4ed5e33
Add frontend/ and node_modules to .gitignore
mpodaniev Jun 8, 2026
bb88940
Add Express v5.2.1 to dependencies
mpodaniev Jun 8, 2026
38231d1
Add Prisma v7.8.0 to dependencies
mpodaniev Jun 8, 2026
98ee598
Add `users` table migration with unique email constraint
mpodaniev Jun 9, 2026
f057ddd
Add @prisma/client v7.8.0 to dependencies
mpodaniev Jun 9, 2026
e5cc3fc
Add .env to gitignore
mpodaniev Jun 9, 2026
351b0ca
Add dotenv v17.4.2 to dependencies
mpodaniev Jun 9, 2026
466d535
Downgrade Prisma to v5, add cors and dotenv dependencies
mpodaniev Jun 9, 2026
d9d10d6
Add Prisma client instance
mpodaniev Jun 9, 2026
bacd776
Add users repository with create function
mpodaniev Jun 9, 2026
d26078b
Add auth controller and router with registration endpoint
mpodaniev Jun 9, 2026
944a60b
Add Express app setup with CORS and server entry point
mpodaniev Jun 9, 2026
2a0e516
Move dotenv initialization to entry point
mpodaniev Jun 9, 2026
726c9c1
Remove auto-generated comments from schema.prisma
mpodaniev Jun 9, 2026
7bd01f3
Remove .env from git tracking
mpodaniev Jun 9, 2026
cebd9ce
Add bcrypt dependency for password hashing
mpodaniev Jun 9, 2026
7b9aa6a
Hash password on registration and exclude it from response
mpodaniev Jun 9, 2026
dd897b3
Add nodemon for auto-restart during development
mpodaniev Jun 10, 2026
d01465f
Add input validation and duplicate email check on registration
mpodaniev Jun 10, 2026
f975ac8
Restrict CORS to CLIENT_URL origin with credentials support
mpodaniev Jun 10, 2026
915f66d
Add nodemailer dependency for email sending
mpodaniev Jun 10, 2026
bbd08fc
Add mailer utility for sending transactional emails via Gmail
mpodaniev Jun 10, 2026
39dcbd7
Add activationToken field to users schema and migration
mpodaniev Jun 10, 2026
378a91a
Send activation email with token on registration
mpodaniev Jun 10, 2026
d5b4201
Fix activation link path and encode email in URL
mpodaniev Jun 10, 2026
9251c20
Add account activation endpoint
mpodaniev Jun 10, 2026
cb88451
Extract userService with normalize and validation helpers
mpodaniev Jun 10, 2026
0b4aa71
Add login endpoint with activation check
mpodaniev Jun 10, 2026
3fb9570
Add jsonwebtoken dependency for JWT signing
mpodaniev Jun 11, 2026
03b8f39
Issue JWT access token on login and activation
mpodaniev Jun 11, 2026
4f6282c
Add auth middleware to validate JWT on protected routes
mpodaniev Jun 11, 2026
7d5ff44
Add protected GET /users endpoint returning active users
mpodaniev Jun 11, 2026
2f4ed0d
Add cookie-parser dependency for reading request cookies
mpodaniev Jun 11, 2026
e584c8a
Add refresh token generation and validation with separate secret
mpodaniev Jun 11, 2026
219cfb3
Add refresh and logout endpoints with httpOnly cookie
mpodaniev Jun 11, 2026
be6ae74
Add Token model and tokens repository for refresh token persistence
mpodaniev Jun 11, 2026
953142c
Persist refresh token in DB on login and invalidate on logout
mpodaniev Jun 11, 2026
270e098
Fix missing newline in tokens.repository export
mpodaniev Jun 11, 2026
343727c
Add name field to User model with migration
mpodaniev Jun 11, 2026
da996f8
Require name on registration and include it in user response
mpodaniev Jun 11, 2026
a072123
Add resetToken fields to User model with migration
mpodaniev Jun 11, 2026
5dcb8ed
Add password reset helpers to repository and mailer
mpodaniev Jun 11, 2026
db37569
Add password reset endpoints to auth router
mpodaniev Jun 11, 2026
b0c6d5e
Add profile update helpers to repository and mailer
mpodaniev Jun 11, 2026
b754350
Add profile endpoints for name, password, and email update
mpodaniev Jun 11, 2026
a70006a
Wire up profile router and confirm-email endpoint
mpodaniev Jun 11, 2026
018bb9c
Add 404 handler for unmatched routes
mpodaniev Jun 11, 2026
0b36107
Return specific error for unactivated account on login
mpodaniev Jun 11, 2026
b9ccf5a
Invalidate sessions on password reset and email change
mpodaniev Jun 11, 2026
63999a5
Require password confirmation on password reset
mpodaniev Jun 11, 2026
aac7859
Require confirmation fields for password and email updates
mpodaniev Jun 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
# Node
node_modules

# Frontend (локально для тестування)
frontend/

# MacOS
.DS_Store

# env files
*.env
.env*
/src/generated/prisma

# Environment
.env
Loading
Loading