Skip to content

Login Authentication Flow Not Working #36

@Franky-1117

Description

@Franky-1117

Users are unable to sign in through the login page even after entering credentials and clicking the Sign In button.

Observed Behavior

User enters email and password.
Clicks Sign In.
Login does not proceed successfully.
No visible feedback/error message is shown to the user.

Expected Behavior
After valid credentials are submitted:

User should authenticate successfully.
JWT/session tokens should be generated and stored.
User should be redirected to the dashboard/home page.
Invalid credentials should display a clear error message.

Steps to Reproduce

Navigate to /login
Enter email and password
Click Sign In
Observe authentication failure

Possible Investigation Areas

Verify API endpoint mapping (POST /auth/login)
Check frontend API URL (NEXT_PUBLIC_API_URL)
Inspect JWT generation and token storage
Verify CORS configuration
Inspect network request status codes (401, 403, 500)
Check whether authentication context/provider updates after login

Acceptance Criteria

Valid credentials authenticate successfully
Proper error handling exists
Redirect works correctly
Tokens persist after refresh

To strengthen the issue further before posting: open DevTools → Network → click Sign In → inspect /auth/login and check:

401 → wrong credentials/backend validation
404 → endpoint missing
500 → server issue
request not firing → frontend bug

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions