Skip to content

Implement login endpoint and add related tests - #3

Merged
evans-costa merged 3 commits into
mainfrom
feature/auth-login
Mar 10, 2026
Merged

Implement login endpoint and add related tests#3
evans-costa merged 3 commits into
mainfrom
feature/auth-login

Conversation

@evans-costa

Copy link
Copy Markdown
Owner

No description provided.

- Add UnauthorizedError type to Voltiq.Exceptions
- Add LOGIN_CREDENCIAIS_INVALIDAS resource key (pt-BR)
- Add GetByEmailAsync to IUserRepository and UserRepository
- Add LoginCommand, LoginCommandValidator, LoginCommandHandler, LoginRequest, LoginResponse
- Add AuthController with POST /auth/login route
- Handle UnauthorizedError -> 401 in BaseApiController.ToErrorResult
- GetByEmailAsync_ShouldReturnUser_WhenEmailExists
- GetByEmailAsync_ShouldReturnNull_WhenEmailNotFound
@evans-costa
evans-costa merged commit 7ea7937 into main Mar 10, 2026
1 check passed
@evans-costa
evans-costa deleted the feature/auth-login branch March 10, 2026 14:28
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.

1 participant