Skip to content

feat(auth): implement JWT authentication with refresh tokens#54

Merged
ansabazys merged 2 commits intomainfrom
feature/auth
Mar 14, 2026
Merged

feat(auth): implement JWT authentication with refresh tokens#54
ansabazys merged 2 commits intomainfrom
feature/auth

Conversation

@ansabazys
Copy link
Owner

Summary

Implemented JWT-based authentication for the auth-service.

Changes

  • Added user registration and login
  • Implemented access and refresh token generation
  • Stored refresh tokens in httpOnly cookies
  • Added refresh token endpoint
  • Implemented logout with session invalidation
  • Created authentication middleware for protected routes
  • Added shared middleware in packages/sdk
  • Configured environment validation using Zod

Notes

  • Access tokens are sent via Authorization header
  • Refresh tokens are stored securely in cookies

Closes #21

@ansabazys ansabazys merged commit f0b24d1 into main Mar 14, 2026
1 check passed
@ansabazys ansabazys deleted the feature/auth branch March 14, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement JWT Authentication

1 participant