Skip to content

Added simple login endpoint with tests for happy and non-happy paths#50

Merged
azunaVT merged 1 commit intomainfrom
feat/login_endpoint
Feb 3, 2026
Merged

Added simple login endpoint with tests for happy and non-happy paths#50
azunaVT merged 1 commit intomainfrom
feat/login_endpoint

Conversation

@azunaVT
Copy link
Contributor

@azunaVT azunaVT commented Feb 3, 2026

Add Login Endpoint (Authenticate User & Create Session)

This PR implements the login endpoint under the Auth namespace, allowing existing users to authenticate with their email and password. Upon successful login, a new session is created and a token is returned.


What’s Included

Login action in Api::V1::AuthController

  • Accepts a nested user object:
    {
      "user": {
        "email": "user@example.com",
        "password": "password123"
      }
    }

@azunaVT azunaVT linked an issue Feb 3, 2026 that may be closed by this pull request
@azunaVT azunaVT merged commit 8c3a35e into main Feb 3, 2026
3 checks passed
@azunaVT azunaVT deleted the feat/login_endpoint branch February 3, 2026 04:14
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 /api/v1/auth/login endpoint

1 participant