Skip to content

Feat: Build Auth module: JWT auth, refresh tokens, and password reset - #356

Merged
devIKargi merged 1 commit into
StellAIverse:mainfrom
estyemma:JWT
Jul 23, 2026
Merged

Feat: Build Auth module: JWT auth, refresh tokens, and password reset#356
devIKargi merged 1 commit into
StellAIverse:mainfrom
estyemma:JWT

Conversation

@estyemma

Copy link
Copy Markdown

Closed: #354
Summary of Changes Made

  1. Added PasswordResetToken entity to store password reset tokens in the database
  2. Added DTOs ( PasswordResetRequestDto, PasswordResetConfirmDto ) for password reset functionality
  3. Updated AuthModule to include the PasswordResetToken repository
  4. Added sendPasswordResetEmail method in EmailService to send password reset emails
  5. Added password reset methods in EnhancedAuthService :
    • requestPasswordReset: sends reset link to user's email
    • confirmPasswordReset: resets password and invalidates all user refresh tokens
  6. Added logout method ( revokeRefreshToken ) in EnhancedAuthService to revoke a given refresh token
  7. Added endpoints in EnhancedAuthController :
    • POST /api/auth/password-reset: request password reset
    • POST /api/auth/password-reset/confirm: confirm password reset
    • POST /api/auth/logout: logout by revoking refresh token
  8. Updated .env.example to add PASSWORD_RESET_URL
    The authentication system now has full JWT auth with refresh tokens, password reset, and secure logout!

@devIKargi
devIKargi merged commit 3209f42 into StellAIverse:main Jul 23, 2026
1 check passed
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.

Build Auth module: JWT auth, refresh tokens, and password reset

3 participants