Skip to content

Implement JWT Authentication Module #128

@Olowodarey

Description

@Olowodarey

User authentication is required for most of the platform's features. We will use JSON Web Tokens (JWT) for stateless authentication.

Acceptance Criteria

  • Install @nestjs/jwt and @nestjs/passport.
  • Create an AuthModule, AuthService, and AuthController.
  • Create a /auth/login and /auth/register endpoint (mocking DB calls if User module doesn't exist yet, or fully integrating if it does).
  • Create a JwtStrategy that validates the token and extracts the user payload.
  • Create a custom @CurrentUser() decorator to easily grab the user from the Request object.

Useful Resources

Metadata

Metadata

Labels

BackendbackendStellar WaveIssues in the Stellar wave program

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions